From 8b8e18d3b4278375155c8f090da9d74e482ced4d Mon Sep 17 00:00:00 2001 From: Bernhard Mueller Date: Mon, 18 Sep 2017 15:00:03 +0700 Subject: [PATCH] Some refactoring --- code | 1 + mythril.py | 4 ++-- util.py | 2 -- 3 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 code diff --git a/code b/code new file mode 100644 index 00000000..538c6286 --- /dev/null +++ b/code @@ -0,0 +1 @@ +a@Pc`pPP \ No newline at end of file diff --git a/mythril.py b/mythril.py index 2439b69f..e07fa70f 100755 --- a/mythril.py +++ b/mythril.py @@ -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() diff --git a/util.py b/util.py index 31c82a06..66bb319e 100644 --- a/util.py +++ b/util.py @@ -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']: