Fix Python 3 compatibility issue in RPC client

pull/2/head
Bernhard Mueller 7 years ago
parent b1c58b292f
commit 7f47882953
  1. 3
      mythril/rpc/client.py

@ -99,7 +99,8 @@ class EthJsonRpc(object):
if sig is not None and args is not None: if sig is not None and args is not None:
types = sig[sig.find('(') + 1: sig.find(')')].split(',') types = sig[sig.find('(') + 1: sig.find(')')].split(',')
encoded_params = encode_abi(types, args) encoded_params = encode_abi(types, args)
code += encoded_params.encode('hex') code += encoded_params.hex()
return self.eth_sendTransaction(from_address=from_, gas=gas, data=code) return self.eth_sendTransaction(from_address=from_, gas=gas, data=code)
def get_contract_address(self, tx): def get_contract_address(self, tx):

Loading…
Cancel
Save