Parsing of RPC options

pull/2/head
Bernhard Mueller 7 years ago
parent 8b8e18d3b4
commit ed7902cb5c
  1. 2
      mythril.py
  2. 2
      util.py

@ -36,7 +36,7 @@ if (args.disassemble):
elif (args.transaction_hash):
try:
encoded_bytecode = util.bytecode_from_blockchain(args.transaction_hash)
encoded_bytecode = util.bytecode_from_blockchain(args.transaction_hash, args.rpchost[0], args.rpcport[0])
except Exception as e:
exitWithError("Exception loading bytecode via RPC: " + str(e.message))

@ -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('127.0.0.1', 8545)
eth = EthJsonRpcWithDebug(rpc_host, rpc_port)
trace = eth.traceTransaction(creation_tx_hash)

Loading…
Cancel
Save