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

[ux-bug] EthAccount error example during Wasm execute #2071

Closed
Unique-Divine opened this issue Oct 10, 2024 · 3 comments
Closed

[ux-bug] EthAccount error example during Wasm execute #2071

Unique-Divine opened this issue Oct 10, 2024 · 3 comments

Comments

@Unique-Divine
Copy link
Member

Unique-Divine commented Oct 10, 2024

Purpose / Abstract

Finally found a way to reproduce the error from NibiruChain/ts-sdk#371.

Error: no concrete type registered for type URL /eth.types.v1.EthAccount against interface *types.AccountI

Update: False Alarm.

See #2071 (comment)

Error Case 1

❯ nibid tx wasm execute $PERP_ADDRESS "$(cat open_trade.json)" --from validator ${TX_FLAG[@]} --amount 1000unusd | tx
❯ nibid tx bank send validator nibi1ljhfmddrxt3axx2y0f5dvt0mxhxkkvs3pewdmq 1000unusd,1000unibi -y --gas-prices 1unibi --node https://rpc.itn-3.nibiru.fi:443 | jq .
❯ nibid keys add alice --keyring-backend test
{"name":"alice","type":"local","address":"nibi1vwhtmmefd50fnsvl4psshd4d29zspjz5fyvmll","pubkey":"{\"@type\":\"/cosmos.crypto.secp256k1.PubKey\",\"key\":\"A8Ql9vAk+0yZpjvKq7vGbRblUla5pcpxaR9WJKtGslr7\"}","mnemonic":"flavor sleep elephant inmate despair prison simple ginger thumb rice gesture panic blood gallery topic update width follow laptop false detect pool joke peasant"}
❯ nibid q wasm contract-state all $PERP_ADDRESS | jq
❯ nibid tx wasm execute $PERP_ADDRESS "$(cat open_trade.json)" --from validator ${TX_FLAG[@]} --amount 1000unusd | tx
❯ nibid tx bank send validator nibi1vwhtmmefd50fnsvl4psshd4d29zspjz5fyvmll 1000unusd,1000unibi -y --gas-prices 1unibi
{"height":"0","txhash":"82277A6659B4BC266387281C50F521590651509B325A909771478DC27E3DD453","codespace":"","code":0,"data":"","raw_log":"[]","logs":[],"info":"","gas_wanted":"0","gas_used":"0","tx":null,"timestamp":"","events":[]}
❯ nibid q bank balances nibi1vwhtmmefd50fnsvl4psshd4d29zspjz5fyvmll
{"balances":[{"denom":"unibi","amount":"1000"},{"denom":"unusd","amount":"1000"}],"pagination":{"next_key":null,"total":"0"}}
❯ nibid tx wasm execute $PERP_ADDRESS "$(cat open_trade.json)" --from alice ${TX_FLAG[@]} --amount 1000unusd | tx
Error: no concrete type registered for type URL /eth.types.v1.EthAccount against interface *types.AccountI
Error: encoding/hex: invalid byte: U+006E 'n'

Error Case 2

❯ nibid keys add alice --keyring-backend test
override the existing name alice [y/N]: y
{"name":"alice","type":"local","address":"nibi1azu86xq8rd2da43sj5jxk9catxxqc9smcndw3u","pubkey":"{\"@type\":\"/cosmos.crypto.secp256k1.PubKey\",\"key\":\"A/q7LegHmEtTt91e22oOzk3/Y+hnMoHM+TF58qG5A5fv\"}","mnemonic":"used symptom young voyage sibling enrich radar excuse question try erode void elevator valley opinion amateur exotic affair eight tide situate nature kitchen gravity"}
❯ nibid tx bank send validator nibi1azu86xq8rd2da43sj5jxk9catxxqc9smcndw3u 1000unusd,1000unibi -y --gas-prices 1unibi --keyring-backend test
{"height":"0","txhash":"2774A8A61B01BB1A5BF0210D91104A3304F67A47CD6C60AC8B7D7311948E19B8","codespace":"","code":0,"data":"","raw_log":"[]","logs":[],"info":"","gas_wanted":"0","gas_used":"0","tx":null,"timestamp":"","events":[]}
❯ nibid q bank balances nibi1azu86xq8rd2da43sj5jxk9catxxqc9smcndw3u
{"balances":[{"denom":"unibi","amount":"1000"},{"denom":"unusd","amount":"1000"}],"pagination":{"next_key":null,"total":"0"}}
❯ nibid tx bank send alice nibi1zaavvzxez0elundtn32qnk9lkm8kmcsz44g7xl 1000unusd -y --gas-prices 1unibi --keyring-backend test
Error: no concrete type registered for type URL /eth.types.v1.EthAccount against interface *types.AccountI
Usage:
  nibid tx bank send [from_key_or_address] [to_address] [amount] [flags]
@github-project-automation github-project-automation bot moved this to ⚡ Building 🧱 in ⚛️ Nibiru (Hougyoku) Oct 10, 2024
@github-actions github-actions bot added the S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5 label Oct 10, 2024
@matthiasmatt
Copy link
Contributor

This was on commit 37913c4

@matthiasmatt
Copy link
Contributor

Still happening on current main (f450c79)

@Unique-Divine
Copy link
Member Author

It turned out we were still running with an an old binary. This was fixed by spamming

sudo rm "$(which nibid)"

and then running

just install

Closing as this does not happen on main (f450c79), the initial audit version.

@github-project-automation github-project-automation bot moved this from ⚡ Building 🧱 to ✅ Completed in ⚛️ Nibiru (Hougyoku) Oct 10, 2024
@Unique-Divine Unique-Divine removed the S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5 label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants