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

bug(evm): nibid q evm account is not symmetric for wasm addresses #2138

Open
k-yang opened this issue Jan 2, 2025 · 2 comments
Open

bug(evm): nibid q evm account is not symmetric for wasm addresses #2138

k-yang opened this issue Jan 2, 2025 · 2 comments
Labels
S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5

Comments

@k-yang
Copy link
Member

k-yang commented Jan 2, 2025

Take the nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs wasm contract address for example.

nibid q evm account nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs | jq outputs:

{
  "balance": "1000000",
  "balance_wei": "1000000000000000000",
  "code_hash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
  "nonce": "0",
  "eth_address": "0x5A8D648DEE57b2fc90D98DC17fa887159b69638b",
  "bech32_address": "nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs"
}

with an ETH address of 0x5A8D648DEE57b2fc90D98DC17fa887159b69638b.

When you do nibid q evm account 0x5A8D648DEE57b2fc90D98DC17fa887159b69638b | jq, you get:

{
  "balance": "0",
  "balance_wei": "0",
  "code_hash": "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
  "nonce": "0",
  "eth_address": "0x5A8D648DEE57b2fc90D98DC17fa887159b69638b",
  "bech32_address": "nibi1t2xkfr0w27e0eyxe3hqhl2y8zkdkjcutmzvu7s"
}

with a Bech32 address of nibi1t2xkfr0w27e0eyxe3hqhl2y8zkdkjcutmzvu7s != nibi14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssa9gcs.

Related to #2133

@github-project-automation github-project-automation bot moved this to ⚡ Building 🧱 in ⚛️ Nibiru (Hougyoku) Jan 2, 2025
@github-actions github-actions bot added the S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5 label Jan 2, 2025
@Unique-Divine
Copy link
Member

Unique-Divine commented Jan 6, 2025

I think this one was fixed in 1ae53e4. The issue was coming from not using the bank query inside of the nibid q evm account request. Changing that brings about the correct behavior

@github-project-automation github-project-automation bot moved this from ⚡ Building 🧱 to ✅ Completed in ⚛️ Nibiru (Hougyoku) Jan 6, 2025
@Unique-Divine
Copy link
Member

Or is this a different case than the above? I might be misunderstanding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-triage Status: This issue is waiting on initial triage. More Info: https://tinyurl.com/25uty9w5
Projects
Status: ⚡ Building 🧱
Development

No branches or pull requests

2 participants