Skip to content

Commit 229b04e

Browse files
Merge pull request #25 from trailofbits/dev-instruction-lists
Instruction lists for all the forks and some small bugfixes
2 parents e23e396 + d39bfd5 commit 229b04e

File tree

3 files changed

+307
-515
lines changed

3 files changed

+307
-515
lines changed

pyevmasm/__main__.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import sys
44
import binascii
55

6-
from .evmasm import assemble_hex, disassemble_all, instruction_tables, assemble_all, block_to_fork, DEFAULT_FORK
6+
from .evmasm import assemble_hex, disassemble_all, instruction_tables, assemble_all, block_to_fork, DEFAULT_FORK, accepted_forks
77

88

99
def main():
@@ -19,12 +19,11 @@ def main():
1919
parser.add_argument('-o', '--output', nargs='?', default=sys.stdout, type=argparse.FileType('w'),
2020
help='Output file, default=stdout')
2121
parser.add_argument('-f', '--fork', default=DEFAULT_FORK, type=str,
22-
help='Fork, default: byzantium. Possible: [pre-byzantium, byzantium, constantinople].'
22+
help='Fork, default: byzantium. '
23+
'Possible: frontier, homestead, tangerine_whistle, spurious_dragon, byzantium, constantinople, serenity. '
2324
'Also an unsigned block number is accepted to select the fork.')
2425

2526
args = parser.parse_args(sys.argv[1:])
26-
27-
accepted_forks = ['pre-byzantium', 'byzantium', 'constantinople']
2827
arg_fork = args.fork.lower()
2928
if arg_fork not in accepted_forks:
3029
try:

0 commit comments

Comments
 (0)