Skip to content

Instantly share code, notes, and snippets.

@veox
Created January 16, 2020 14:27
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 veox/7db12b54e88b9217eadef4f99b37acd8 to your computer and use it in GitHub Desktop.
Save veox/7db12b54e88b9217eadef4f99b37acd8 to your computer and use it in GitHub Desktop.
raw disassemby for contract in failing block, as presented by `evm disasm`
6080604052348015600f57600080fd5b5060043610604e577c0100000000000000000000000000000000000000000000000000000000600035046341c0e1b581146053578063f1eae25c14605b575b600080fd5b60596061565b005b6059609d565b60005473ffffffffffffffffffffffffffffffffffffffff16331415609b5760005473ffffffffffffffffffffffffffffffffffffffff16ff5b565b6000805473ffffffffffffffffffffffffffffffffffffffff19163317905556fea165627a7a723058203230f97067f2d9f26cc43a9945289dd758190b45efa590bf0889d8f768e2fed40029
00000: PUSH1 0x80
00002: PUSH1 0x40
00004: MSTORE
00005: CALLVALUE
00006: DUP1
00007: ISZERO
00008: PUSH1 0x0f
0000a: JUMPI
0000b: PUSH1 0x00
0000d: DUP1
0000e: REVERT
0000f: JUMPDEST
00010: POP
00011: PUSH1 0x04
00013: CALLDATASIZE
00014: LT
00015: PUSH1 0x4e
00017: JUMPI
00018: PUSH29 0x0100000000000000000000000000000000000000000000000000000000
00036: PUSH1 0x00
00038: CALLDATALOAD
00039: DIV
0003a: PUSH4 0x41c0e1b5
0003f: DUP2
00040: EQ
00041: PUSH1 0x53
00043: JUMPI
00044: DUP1
00045: PUSH4 0xf1eae25c
0004a: EQ
0004b: PUSH1 0x5b
0004d: JUMPI
0004e: JUMPDEST
0004f: PUSH1 0x00
00051: DUP1
00052: REVERT
00053: JUMPDEST
00054: PUSH1 0x59
00056: PUSH1 0x61
00058: JUMP
00059: JUMPDEST
0005a: STOP
0005b: JUMPDEST
0005c: PUSH1 0x59
0005e: PUSH1 0x9d
00060: JUMP
00061: JUMPDEST
00062: PUSH1 0x00
00064: SLOAD
00065: PUSH20 0xffffffffffffffffffffffffffffffffffffffff
0007a: AND
0007b: CALLER
0007c: EQ
0007d: ISZERO
0007e: PUSH1 0x9b
00080: JUMPI
00081: PUSH1 0x00
00083: SLOAD
00084: PUSH20 0xffffffffffffffffffffffffffffffffffffffff
00099: AND
0009a: SELFDESTRUCT
0009b: JUMPDEST
0009c: JUMP
0009d: JUMPDEST
0009e: PUSH1 0x00
000a0: DUP1
000a1: SLOAD
000a2: PUSH20 0xffffffffffffffffffffffffffffffffffffffff
000b7: NOT
000b8: AND
000b9: CALLER
000ba: OR
000bb: SWAP1
000bc: SSTORE
000bd: JUMP
000be: Missing opcode 0xfe
000bf: LOG1
000c0: PUSH6 0x627a7a723058
000c7: SHA3
000c8: ORIGIN
000c9: ADDRESS
000ca: Missing opcode 0xf9
000cb: PUSH17 0x67f2d9f26cc43a9945289dd758190b45ef
000dd: Missing opcode 0xa5
000de: SWAP1
000df: Missing opcode 0xbf
000e0: ADDMOD
000e1: DUP10
000e2: Missing opcode 0xd8
000e3: Missing opcode 0xf7
incomplete push instruction at 228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment