Skip to content

Instantly share code, notes, and snippets.

@hugo-dc
Created November 27, 2023 17:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hugo-dc/9e1e27216fcb117cda35218c2c0cca50 to your computer and use it in GitHub Desktop.
Save hugo-dc/9e1e27216fcb117cda35218c2c0cca50 to your computer and use it in GitHub Desktop.
Config: /home/hugo/workspace/gel/evmone/build/lib/libevmone.so,trace
Executing on Shanghai with 1000000 gas limit
{"depth":0,"rev":"Shanghai","static":false}
{"pc":0,"op":58,"opName":"GASPRICE","gas":0xf4240,"stack":[],"memorySize":0}
{"pc":1,"op":96,"opName":"PUSH1","gas":0xf423e,"stack":["0x0"],"memorySize":0}
{"pc":3,"op":85,"opName":"SSTORE","gas":0xf423b,"stack":["0x0","0x0"],"memorySize":0}
revision: Shanghai
revision > berlin? 1
gas cost cold: 2100
gas cost warm: 100
gas cost: 2200
{"error":null,"gas":0xf39a3,"gasUsed":0x89d,"output":""}
Result: success
Gas used: 2205
Output:
t8n: /home/hugo/workspace/gel/go-ethereum/build/bin/evm
{"pc":0,"op":58,"gas":"0xa5c58","gasCost":"0x2","memSize":0,"stack":[],"depth":1,"refund":0,"opName":"GASPRICE"}
{"pc":1,"op":96,"gas":"0xa5c56","gasCost":"0x3","memSize":0,"stack":["0xa"],"depth":1,"refund":0,"opName":"PUSH1"}
{"pc":3,"op":85,"gas":"0xa5c53","gasCost":"0x5654","memSize":0,"stack":["0xa","0x0"],"depth":1,"refund":0,"opName":"SSTORE"}
{"pc":4,"op":0,"gas":"0xa05ff","gasCost":"0x0","memSize":0,"stack":[],"depth":1,"refund":0,"opName":"STOP"}
{"output":"","gasUsed":"0x5659"}
Output: >>> slot not present in access list
>>> [2] cost (coldSload): 2100
>>> [2] eip2200: 20000
>>> [2] totalCost: 22100
>>> gasUsed 43105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment