You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the e2e test, I encountered an EVM bug of not being able to query or execute any EVM contracts after uploading. The request always returned an empty response.
To Reproduce
Steps to reproduce the behavior:
Upload an EVM Solidity contract. Eg: ERC20 contraxt
Invoke a simple contract query. Eg: a decimals() query
Expected behavior
A decimals() query should return the contract's decimals()
Screenshots
The text was updated successfully, but these errors were encountered:
After a day of debugging, I found the root cause of the bug. The Ethermint repo was querying an EVM contract's bytecodes from an EVM account casted from the AccountI of auth module.
Below is the GetCode logic to get the EVM bytecodes before querying or executing the contract:
Context
When running the e2e test, I encountered an EVM bug of not being able to query or execute any EVM contracts after uploading. The request always returned an empty response.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A
decimals()
query should return the contract's decimals()Screenshots
The text was updated successfully, but these errors were encountered: