|
|
@ -63,7 +63,7 @@ utils = parser.add_argument_group('utilities') |
|
|
|
utils.add_argument('-d', '--disassemble', action='store_true', help='print disassembly') |
|
|
|
utils.add_argument('-d', '--disassemble', action='store_true', help='print disassembly') |
|
|
|
utils.add_argument('--xrefs', action='store_true', help='get xrefs from a contract') |
|
|
|
utils.add_argument('--xrefs', action='store_true', help='get xrefs from a contract') |
|
|
|
utils.add_argument('--hash', help='calculate function signature hash', metavar='SIGNATURE') |
|
|
|
utils.add_argument('--hash', help='calculate function signature hash', metavar='SIGNATURE') |
|
|
|
utils.add_argument('--storage', help='read state variables from storage index (index,length,array(in case of arrays)), use with -a', metavar='INDEX') |
|
|
|
utils.add_argument('--storage', help='read state variables from storage index, use with -a', metavar='INDEX,NUM_SLOTS,[array]') |
|
|
|
|
|
|
|
|
|
|
|
options = parser.add_argument_group('options') |
|
|
|
options = parser.add_argument_group('options') |
|
|
|
options.add_argument('--ipc', help='use IPC interface instead of RPC', action='store_true') |
|
|
|
options.add_argument('--ipc', help='use IPC interface instead of RPC', action='store_true') |
|
|
@ -262,7 +262,7 @@ if args.storage: |
|
|
|
if re.match("array",params[2]): |
|
|
|
if re.match("array",params[2]): |
|
|
|
array = 1 |
|
|
|
array = 1 |
|
|
|
if len(params) >= 4: |
|
|
|
if len(params) >= 4: |
|
|
|
exitWithError("Invalid amount of parameters.") |
|
|
|
exitWithError("Invalid number of parameters.") |
|
|
|
except ValueError: |
|
|
|
except ValueError: |
|
|
|
exitWithError("Invalid storage index. Please provide a numeric value.") |
|
|
|
exitWithError("Invalid storage index. Please provide a numeric value.") |
|
|
|
|
|
|
|
|
|
|
|