Ganache v7.0.0: Javascript traces inside revert message
See original GitHub issueWe are using ganache to test Gnosis Safe, and we are trying to update from v6 to v7, and we detected a weird behaviour. Even if --chain.vmErrorsOnRPCResponse false
, when having a revert
message there are Javascript traces in there that prevent the parsing of the revert error:
{"id":1,"jsonrpc":"2.0","error":{"message":"VM Exception while processing transaction: revert \\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\xef\xbf\xbdu","stack":"RuntimeError: VM Exception while processing transaction: revert \\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\xef\xbf\xbdu\\n at Blockchain.simulateTransaction (/home/uxio/.config/yarn/global/node_modules/ganache/dist/node/1.js:2:48034)","code":-32000,"name":"RuntimeError","data":{"hash":null,"programCounter":112,"result":"0x08c379a0000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000008775","reason":"\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\\u0000\xef\xbf\xbdu","message":"revert"}}}
It’s not easily reproducible as it involves deploying the Safe contracts https://github.com/gnosis/gnosis-py/runs/4897023415?check_suite_focus=true#step:10:370
Same behaviour and more easily reproducible when setting a low maxFeePerGas
:
{'message': "VM Exception while processing transaction: Transaction's maxFeePerGas (1) is less than the block's baseFeePerGas (7) (vm hf=london -> block -> tx)", 'stack': "RuntimeError: VM Exception while processing transaction: Transaction's maxFeePerGas (1) is less than the block's baseFeePerGas (7) (vm hf=london -> block -> tx)\n at Miner.<anonymous> (/app/dist/node/1.js:2:118507)\n at async Miner.<anonymous> (/app/dist/node/1.js:2:116863)\n at async Miner.<anonymous> (/app/dist/node/1.js:2:115474)\n at async Miner.mine (/app/dist/node/1.js:2:120062)\n at async Blockchain.mine (/app/dist/node/1.js:2:36544)\n at async Promise.all (index 0)\n at async TransactionPool.emit (/app/dist/node/0.js:2:81959)", 'code': -32000, 'name': 'RuntimeError', 'data': {'hash': '0xd12db7d9c78648b62c1572f9fcbd8197e7fadb910d6703b310a24ae22c7b8a7b', 'programCounter': 0, 'result': '0xd12db7d9c78648b62c1572f9fcbd8197e7fadb910d6703b310a24ae22c7b8a7b', 'reason': None, 'message': "Transaction's maxFeePerGas (1) is less than the block's baseFeePerGas (7) (vm hf=london -> block -> tx)"}}
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
v7.0.0 · Discussion #2121 · trufflesuite/ganache - GitHub
v7.0.0. ... Ganache is Now Ganache; Use Ganache in the Browser; Huge Transaction Traces ... Replacement transactions are now supported in Ganache v7....
Read more >Ganache 7 Ethereum Simulator - Building on Web3 is now ...
To run Ganache 7 on the command line, you must have Node.js >= v12.0.0 and NPM ... trying to trace; for example, if...
Read more >ganache - NPM Package Overview - Socket - Socket.dev
A library and cli to create a local blockchain for fast Ethereum development. Version: 7.7.0 was published by truffle-cicd. Start using Socket to...
Read more >ConsenSys/truffle - Gitter
When I run the following in truffle develop (or try and use in my test.js) I get the resulting error: truffle(develop)> var message...
Read more >ganache: Versions - Openbase
Launching ganache with fork is throwing revert errors when communicating with 3rd party contracts (#956); Build a real pending block! (#772); VM Exception...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Awesome, so fast!
@Uxio0 Looks like we’ll align fully with geth here, so you can expect 7.0.1 release fixing this issue later this week!