Some refactoring

pull/2/head
Bernhard Mueller 7 years ago
parent 5c5e1aef5a
commit 8b8e18d3b4
  1. 1
      code
  2. 4
      mythril.py
  3. 2
      util.py

@ -0,0 +1 @@
a@Pc`p€<EFBFBD>PP

@ -23,8 +23,8 @@ parser.add_argument('-a', '--assemble', nargs=1, help='produce bytecode from eas
parser.add_argument('-c', '--code', nargs=1, help='bytecode string ("6060604052...")', metavar='BYTECODE')
parser.add_argument('-t', '--transaction_hash', help='id of contract creation transaction')
parser.add_argument('-o', '--outfile')
parser.add_argument('--rpchost', nargs=1, help='RPC host')
parser.add_argument('--rpcport', nargs=1, help='RPC port')
parser.add_argument('--rpchost', nargs=1, default='127.0.0.1', help='RPC host')
parser.add_argument('--rpcport', nargs=1, default=8545, help='RPC port')
args = parser.parse_args()

@ -15,8 +15,6 @@ def bytecode_from_blockchain(creation_tx_hash, rpc_host='127.0.0.1', rpc_port=85
eth = EthJsonRpcWithDebug('127.0.0.1', 8545)
# receipt = eth.eth_getTransactionReceipt(creation_tx_hash)
trace = eth.traceTransaction(creation_tx_hash)
if trace['returnValue']:

Loading…
Cancel
Save