Browse Source

proto.eth.contract: critical Parity RPC bugfix

The MMGen Project 3 months ago
parent
commit
9e3b352244
1 changed files with 1 additions and 1 deletions
  1. 1 1
      mmgen/proto/eth/contract.py

+ 1 - 1
mmgen/proto/eth/contract.py

@@ -68,7 +68,7 @@ class Contract:
 
 
 		args = {
 		args = {
 			'to': '0x' + self.addr,
 			'to': '0x' + self.addr,
-			'input': '0x' + data}
+			('data' if self.rpc.daemon.id == 'parity' else 'input'): '0x' + data}
 
 
 		if from_addr:
 		if from_addr:
 			args['from'] = '0x' + from_addr
 			args['from'] = '0x' + from_addr