Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
py-evm trace for failing test RevertPrecompiledTouch_d0g0v0_Istanbul
Persisting new state root: 0x7b39dbfaac2cd3a71aaf38acb848302eead430c75c21a49365f17404423aa8d3
TRANSACTION: sender: 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | value: 0 | gas: 100000 | gas-price: 1 | s: 40891726403850439953374365587933587017898540460236132698587327163578512598704 | r: 96796879067996587441862252401368798040487612135108074009208954375442237283108 | v: 27 | data-hash: 0xece9ce86711568efac1ac8e5ef132e802927f0fd42029c938dcfd034fed6d097
COMPUTATION STARTING: gas: 78860 | from: 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | value: 0 | depth 0 | static: n
OPCODE: 0x60 (PUSH1) | pc: 0
GAS CONSUMPTION: 78860 - 3 -> 78857 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 2
GAS CONSUMPTION: 78857 - 3 -> 78854 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 4
GAS CONSUMPTION: 78854 - 3 -> 78851 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 6
GAS CONSUMPTION: 78851 - 3 -> 78848 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 8
GAS CONSUMPTION: 78848 - 3 -> 78845 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 10
GAS CONSUMPTION: 78845 - 3 -> 78842 (PUSH1)
OPCODE: 0x35 (CALLDATALOAD) | pc: 12
GAS CONSUMPTION: 78842 - 3 -> 78839 (CALLDATALOAD)
OPCODE: 0x5a (GAS) | pc: 13
GAS CONSUMPTION: 78839 - 2 -> 78837 (GAS)
OPCODE: 0xf2 (CALLCODE) | pc: 14
GAS CONSUMPTION: 78837 - 700 -> 78137 (CALLCODE)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 78137 - 76917 -> 1220 (CALLCODE)
COMPUTATION STARTING: gas: 76917 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | value: 0 | depth 1 | static: n
OPCODE: 0x60 (PUSH1) | pc: 0
GAS CONSUMPTION: 76917 - 3 -> 76914 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 2
GAS CONSUMPTION: 76914 - 3 -> 76911 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 4
GAS CONSUMPTION: 76911 - 3 -> 76908 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 6
GAS CONSUMPTION: 76908 - 3 -> 76905 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 8
GAS CONSUMPTION: 76905 - 3 -> 76902 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 10
GAS CONSUMPTION: 76902 - 3 -> 76899 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 12
GAS CONSUMPTION: 76899 - 3 -> 76896 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 15
GAS CONSUMPTION: 76896 - 700 -> 76196 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 76196 - 50000 -> 26196 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000001 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 3000 -> 47000 (ECRecover Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000001 | value: 0 | depth: 2 | static: n | gas-used: 3000 | gas-remaining: 47000
GAS RETURNED: 26196 + 47000 -> 73196
OPCODE: 0x50 (POP) | pc: 16
GAS CONSUMPTION: 73196 - 2 -> 73194 (POP)
OPCODE: 0x60 (PUSH1) | pc: 17
GAS CONSUMPTION: 73194 - 3 -> 73191 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 19
GAS CONSUMPTION: 73191 - 3 -> 73188 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 21
GAS CONSUMPTION: 73188 - 3 -> 73185 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 23
GAS CONSUMPTION: 73185 - 3 -> 73182 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 25
GAS CONSUMPTION: 73182 - 3 -> 73179 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 27
GAS CONSUMPTION: 73179 - 3 -> 73176 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 29
GAS CONSUMPTION: 73176 - 3 -> 73173 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 32
GAS CONSUMPTION: 73173 - 700 -> 72473 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 72473 - 50000 -> 22473 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000002 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 60 -> 49940 (SHA256 Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000002 | value: 0 | depth: 2 | static: n | gas-used: 60 | gas-remaining: 49940
GAS RETURNED: 22473 + 49940 -> 72413
OPCODE: 0x50 (POP) | pc: 33
GAS CONSUMPTION: 72413 - 2 -> 72411 (POP)
OPCODE: 0x60 (PUSH1) | pc: 34
GAS CONSUMPTION: 72411 - 3 -> 72408 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 36
GAS CONSUMPTION: 72408 - 3 -> 72405 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 38
GAS CONSUMPTION: 72405 - 3 -> 72402 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 40
GAS CONSUMPTION: 72402 - 3 -> 72399 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 42
GAS CONSUMPTION: 72399 - 3 -> 72396 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 44
GAS CONSUMPTION: 72396 - 3 -> 72393 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 46
GAS CONSUMPTION: 72393 - 3 -> 72390 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 49
GAS CONSUMPTION: 72390 - 700 -> 71690 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 71690 - 50000 -> 21690 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000003 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 600 -> 49400 (RIPEMD160 Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000003 | value: 0 | depth: 2 | static: n | gas-used: 600 | gas-remaining: 49400
GAS RETURNED: 21690 + 49400 -> 71090
OPCODE: 0x50 (POP) | pc: 50
GAS CONSUMPTION: 71090 - 2 -> 71088 (POP)
OPCODE: 0x60 (PUSH1) | pc: 51
GAS CONSUMPTION: 71088 - 3 -> 71085 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 53
GAS CONSUMPTION: 71085 - 3 -> 71082 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 55
GAS CONSUMPTION: 71082 - 3 -> 71079 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 57
GAS CONSUMPTION: 71079 - 3 -> 71076 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 59
GAS CONSUMPTION: 71076 - 3 -> 71073 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 61
GAS CONSUMPTION: 71073 - 3 -> 71070 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 63
GAS CONSUMPTION: 71070 - 3 -> 71067 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 66
GAS CONSUMPTION: 71067 - 700 -> 70367 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 70367 - 50000 -> 20367 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000004 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 15 -> 49985 (Identity Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000004 | value: 0 | depth: 2 | static: n | gas-used: 15 | gas-remaining: 49985
GAS RETURNED: 20367 + 49985 -> 70352
OPCODE: 0x50 (POP) | pc: 67
GAS CONSUMPTION: 70352 - 2 -> 70350 (POP)
OPCODE: 0x60 (PUSH1) | pc: 68
GAS CONSUMPTION: 70350 - 3 -> 70347 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 70
GAS CONSUMPTION: 70347 - 3 -> 70344 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 72
GAS CONSUMPTION: 70344 - 3 -> 70341 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 74
GAS CONSUMPTION: 70341 - 3 -> 70338 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 76
GAS CONSUMPTION: 70338 - 3 -> 70335 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 78
GAS CONSUMPTION: 70335 - 3 -> 70332 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 80
GAS CONSUMPTION: 70332 - 3 -> 70329 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 83
GAS CONSUMPTION: 70329 - 700 -> 69629 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 69629 - 50000 -> 19629 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000005 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 0 -> 50000 (MODEXP Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000005 | value: 0 | depth: 2 | static: n | gas-used: 0 | gas-remaining: 50000
GAS RETURNED: 19629 + 50000 -> 69629
OPCODE: 0x50 (POP) | pc: 84
GAS CONSUMPTION: 69629 - 2 -> 69627 (POP)
OPCODE: 0x60 (PUSH1) | pc: 85
GAS CONSUMPTION: 69627 - 3 -> 69624 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 87
GAS CONSUMPTION: 69624 - 3 -> 69621 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 89
GAS CONSUMPTION: 69621 - 3 -> 69618 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 91
GAS CONSUMPTION: 69618 - 3 -> 69615 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 93
GAS CONSUMPTION: 69615 - 3 -> 69612 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 95
GAS CONSUMPTION: 69612 - 3 -> 69609 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 97
GAS CONSUMPTION: 69609 - 3 -> 69606 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 100
GAS CONSUMPTION: 69606 - 700 -> 68906 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 68906 - 50000 -> 18906 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000006 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 150 -> 49850 (ECADD Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000006 | value: 0 | depth: 2 | static: n | gas-used: 150 | gas-remaining: 49850
GAS RETURNED: 18906 + 49850 -> 68756
OPCODE: 0x50 (POP) | pc: 101
GAS CONSUMPTION: 68756 - 2 -> 68754 (POP)
OPCODE: 0x60 (PUSH1) | pc: 102
GAS CONSUMPTION: 68754 - 3 -> 68751 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 104
GAS CONSUMPTION: 68751 - 3 -> 68748 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 106
GAS CONSUMPTION: 68748 - 3 -> 68745 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 108
GAS CONSUMPTION: 68745 - 3 -> 68742 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 110
GAS CONSUMPTION: 68742 - 3 -> 68739 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 112
GAS CONSUMPTION: 68739 - 3 -> 68736 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 114
GAS CONSUMPTION: 68736 - 3 -> 68733 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 117
GAS CONSUMPTION: 68733 - 700 -> 68033 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 68033 - 50000 -> 18033 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000007 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 6000 -> 44000 (ECMUL Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000007 | value: 0 | depth: 2 | static: n | gas-used: 6000 | gas-remaining: 44000
GAS RETURNED: 18033 + 44000 -> 62033
OPCODE: 0x50 (POP) | pc: 118
GAS CONSUMPTION: 62033 - 2 -> 62031 (POP)
OPCODE: 0x60 (PUSH1) | pc: 119
GAS CONSUMPTION: 62031 - 3 -> 62028 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 121
GAS CONSUMPTION: 62028 - 3 -> 62025 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 123
GAS CONSUMPTION: 62025 - 3 -> 62022 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 125
GAS CONSUMPTION: 62022 - 3 -> 62019 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 127
GAS CONSUMPTION: 62019 - 3 -> 62016 (PUSH1)
OPCODE: 0x60 (PUSH1) | pc: 129
GAS CONSUMPTION: 62016 - 3 -> 62013 (PUSH1)
OPCODE: 0x61 (PUSH2) | pc: 131
GAS CONSUMPTION: 62013 - 3 -> 62010 (PUSH2)
OPCODE: 0xf1 (CALL) | pc: 134
GAS CONSUMPTION: 62010 - 700 -> 61310 (CALL)
MEMORY: size (0 -> 0) | cost (0 -> 0)
MEMORY: size (0 -> 0) | cost (0 -> 0)
GAS CONSUMPTION: 61310 - 50000 -> 11310 (CALL)
COMPUTATION STARTING: gas: 50000 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000008 | value: 0 | depth 2 | static: n
GAS CONSUMPTION: 50000 - 45000 -> 5000 (ECPAIRING Precompile)
COMPUTATION SUCCESS: from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0x0000000000000000000000000000000000000008 | value: 0 | depth: 2 | static: n | gas-used: 45000 | gas-remaining: 5000
GAS RETURNED: 11310 + 5000 -> 16310
OPCODE: 0x50 (POP) | pc: 135
GAS CONSUMPTION: 16310 - 2 -> 16308 (POP)
OPCODE: 0x5a (GAS) | pc: 136
GAS CONSUMPTION: 16308 - 2 -> 16306 (GAS)
OPCODE: 0x60 (PUSH1) | pc: 137
GAS CONSUMPTION: 16306 - 3 -> 16303 (PUSH1)
OPCODE: 0x55 (SSTORE) | pc: 139
COMPUTATION ERROR: gas: 76917 | from: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | value: 0 | depth: 1 | static: n | error: Out of gas: Needed 20000 - Remaining 16303 - Reason: SSTORE: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b[1] -> 16306 (current: 0 / original: 0)
GAS CONSUMPTION: 16303 - 16303 -> 0 (Zeroing gas due to VM Exception: Out of gas: Needed 20000 - Remaining 16303 - Reason: SSTORE: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b[1] -> 16306 (current: 0 / original: 0))
OPCODE: 0x0 (STOP) | pc: 15
COMPUTATION SUCCESS: from: 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b | to: 0xb94f5374fce5edbc8e2a8697c15331677e6ebf0b | value: 0 | depth: 0 | static: n | gas-used: 77640 | gas-remaining: 1220
TRANSACTION REFUND: 1220 -> 0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b
TRANSACTION FEE: 98780 -> 0x68795c4aa09d6f4ed3e5deddf8c2ad3049a601da
BLOCK REWARD: 2000000000000000000 -> b'hy\\J\xa0\x9doN\xd3\xe5\xde\xdd\xf8\xc2\xad0I\xa6\x01\xda'
Persisting new state root: 0x3e0ebe2720485afcde1c7f189cd92640850e6693d9cf332610bb3ddfafc196ca
IMPORTED_BLOCK: number 1 | hash 0x5f76a95207e684cbd8b9312e3bd5bc7d051f434a4bcce0190077a594baa868ef
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment