Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ethermint eth wallet priv export error: unable to unmarshal item.Data: Bytes left over in UnmarshalBinaryLengthPrefixed #1

Open
ducphamle2 opened this issue Sep 4, 2024 · 1 comment

Comments

@ducphamle2
Copy link
Collaborator

  • Received the following error exporting the eth wallet private key:
image
@ducphamle2
Copy link
Collaborator Author

Fixed in #2

The reason for the bug is because wasmd only registers github.com/cosmos/cosmos-sdk/std interfaces.

Meanwhile, we need to also register github.com/evmos/ethermint/encoding/codec interfaces as well as we integrate ethermint into wasmd.

It will register ethsecp256k1.PubKey{} so that we can unmarshal the stored eth wallet
image
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant