-
Notifications
You must be signed in to change notification settings - Fork 8
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
Getting error Unsupported type: '/eth.types.v1.EthAccount'
with brand new keplr wallet
#371
Comments
Please see here: cosmos/relayer#1493 |
Context From Telegram [2024-09-24]
Would note that I don't think this one is blocked. We do need to extend the default Wasm signing client to register the other account type. |
Outline of a similar issue with ethermint Since the fix requires a change to the Account parser in cosmjs, and seems that isn't going to be worked on. We could potentially append their existing account parser to accept our eth account, outlined here https://github.com/cosmos/cosmjs/blob/main/packages/stargate/src/accounts.ts#L44-L89. But this can be a second solution since, we don't want to be dependant on their PR approval. A possible solution is that we can either extend or create a wrapper for the NibiruTxClient to accept ethaccounts. Found this script that allows signing and simulating Cosmos-EVM transactions using Keplr:
|
Reproducing on Testnet, created a new keplr wallet and deployed a counter contract. Was able to reproduce. NOTE: Must ensure that Wallet is newly generated with Keplr only. Regardless knowing that the error is sided from https://github.com/cosmos/cosmjs/blob/main/packages/stargate/src/accounts.ts#L44-L89, we would need to make a Account parser for our Eth accounts. |
Great find on reproducing the issue |
🎉 This issue has been resolved in version 5.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
We are getting this error when trying to execute a contract function deployed on testnet-1
Code snippet we are trying:
version:
"@nibiruchain/nibijs": "^4.5.1"
How to recreate?
try calling this particular contract
nibi1ag6a26rvt9duue8wh8rsp94z9lx7c5pdjf8mlkals6f2uqr0aj0s4ltp6q
functionmint()
with the following param:Make sure to generate a brand new wallet in Keplr and try.
Note; we have notice that when we use validator's account then it works. but when creating a brand new account in keplr wallet or even in cli, it does not work through JS sdk.
The text was updated successfully, but these errors were encountered: