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

0.70-rc1 testnet does not support eth_call for blocks prior to upgrade #327

Closed
2 of 3 tasks
crypto-steve-ng opened this issue Feb 9, 2022 · 0 comments · Fixed by #329
Closed
2 of 3 tasks

0.70-rc1 testnet does not support eth_call for blocks prior to upgrade #327

crypto-steve-ng opened this issue Feb 9, 2022 · 0 comments · Fixed by #329

Comments

@crypto-steve-ng
Copy link

crypto-steve-ng commented Feb 9, 2022

Describe the bug
eth_call for blocks prior to the testnet upgrade (blocks before 1553700) are getting -32000 error.

To Reproduce
Steps to reproduce the behavior:

Below is an RPC post request to wcro contract balanceOf(addr) function with different block parameter. When block parameter is prior to 0.7.0, an error is thrown

  • latest - work
  • a block after 0.7.0, block 1553701 = 0x17B525 - work
  • a block before 0.7.0, block 1553699 = 0x17B523 - error

Example of eth_call request on block 1553699

[
    {
        "jsonrpc": "2.0",
        "method": "eth_call",
        "params": [
            {
                "to": "0x6a3173618859C7cd40fAF6921b5E9eB6A76f1fD4",
                "data": "0x70a08231000000000000000000000000e871ff8d355a351c21c5c4423874b141da23ee43"
            },
            "0x17B523"
        ],
        "id": 1
    }
]

Error response

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "error": {
            "code": -32000,
            "message": "rpc error: code = Unknown desc = panic message redacted to hide potentially sensitive system info: panic"
        }
    }
]

Expected behavior
Expected success response

[
    {
        "jsonrpc": "2.0",
        "id": 1,
        "result": "0x0000000000000000000000000000000000000000000000000000000000000000"
    }
]
yihuang added a commit to yihuang/cronos that referenced this issue Feb 9, 2022
…to upgrade

Closes: crypto-org-chain#327

Solution:
- fix base fee check logic in ethermint.
yihuang added a commit that referenced this issue Feb 10, 2022
…to upgrade (#329)

* Problem: 0.70-rc1 testnet does not support eth_call for blocks prior to upgrade

Closes: #327

Solution:
- fix base fee check logic in ethermint.

* changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant