Skip to content

Commit

Permalink
Truffle now requires the RPC id in the result to be the same one as w…
Browse files Browse the repository at this point in the history
…as requested
  • Loading branch information
ESultanik committed Jan 26, 2019
1 parent 8ca943c commit 03c347a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion etheno/etheno.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ def post(self, data):
plugin.before_post(data)

method = data['method']

args = ()
kwargs = {}
if 'params' in data:
Expand All @@ -316,12 +315,15 @@ def post(self, data):
del kwargs['from']
else:
args = data['params']

if self.master_client is None:
ret = None
else:
if method == 'eth_getTransactionReceipt':
# for eth_getTransactionReceipt, make sure we block until all clients have mined the transaction
ret = self.master_client.wait_for_transaction(data['params'][0])
if 'id' in data and 'id' in ret:
ret['id'] = data['id']
else:
try:
ret = self.master_client.post(data)
Expand Down

0 comments on commit 03c347a

Please sign in to comment.