Skip to content

Commit

Permalink
Fix eth_estimateGas to return an int
Browse files Browse the repository at this point in the history
  • Loading branch information
Arachnid committed May 27, 2016
1 parent bdbcc52 commit c928e5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ethjsonrpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def eth_estimateGas(self, to_address=None, from_address=None, gas=None, gas_pric
obj['value'] = value
if data is not None:
obj['data'] = data
return self._call('eth_estimateGas', [obj, default_block])
return hex_to_dec(self._call('eth_estimateGas', [obj, default_block]))

def eth_getBlockByHash(self, block_hash, tx_objects=True):
'''
Expand Down

0 comments on commit c928e5b

Please sign in to comment.