Fix arg parsing

pull/2/head
Bernhard Mueller 7 years ago
parent 95a8834f69
commit b8002f2c0a
  1. 2
      mythril.py
  2. 2
      util.py

@ -24,7 +24,7 @@ parser.add_argument('-c', '--code', help='bytecode string ("6060604052...")', me
parser.add_argument('-t', '--transaction_hash', help='id of contract creation transaction')
parser.add_argument('-o', '--outfile')
parser.add_argument('--rpchost', default='127.0.0.1', help='RPC host')
parser.add_argument('--rpcport', type=int, default=[8545], help='RPC port')
parser.add_argument('--rpcport', type=int, default=8545, help='RPC port')
args = parser.parse_args()

@ -13,7 +13,7 @@ def bytecode_from_blockchain(creation_tx_hash, rpc_host='127.0.0.1', rpc_port=85
creation_tx_hash = ID of transaction that created the contract.
"""
eth = EthJsonRpcWithDebug(rpc_host, 8545)
eth = EthJsonRpcWithDebug(rpc_host, rpc_port)
trace = eth.traceTransaction(creation_tx_hash)

Loading…
Cancel
Save