ethermint
ethermint copied to clipboard
RPC eth_getBlockByHashð_getBlockByNumber return inappropriate value type of difficulty/totalDifficulty
System info: [Include Ethermint commit, operating system name, and other relevant details]
Steps to reproduce:
- The value of
difficulty
ortotalDifficulty
fetched frometh_getBlockByHash
andeth_getBlockByNumber
is0
, not0x0
https://github.com/cosmos/ethermint/blob/fae8147352e65b86f0755a081f3b59b1e25d48bf/rpc/types/utils.go#L174 https://github.com/cosmos/ethermint/blob/fae8147352e65b86f0755a081f3b59b1e25d48bf/rpc/types/utils.go#L175
Expected behavior: [What you expected to happen]
- These api should return "0x0". It is better for developers from the ethereum community to resolve this hex value.
Actual behavior: [What actually happened]
Additional info: [Include gist of relevant config, logs, etc.]
This issue is stale because it has been open 45 days with no activity. Remove stale
label or comment or this will be closed in 7 days.