From 7d8f7c8959a2097af6ec3e376067d13b79cb7da0 Mon Sep 17 00:00:00 2001 From: damon Date: Fri, 19 Mar 2021 05:58:44 -0700 Subject: [PATCH 1/3] attempt potential fix of #2602 by casting into to hex in tx.build_payload --- nucypher/blockchain/eth/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucypher/blockchain/eth/interfaces.py b/nucypher/blockchain/eth/interfaces.py index 5ac1e9548..699dd2095 100644 --- a/nucypher/blockchain/eth/interfaces.py +++ b/nucypher/blockchain/eth/interfaces.py @@ -465,7 +465,7 @@ class BlockchainInterface: ) -> dict: nonce = self.client.get_transaction_count(account=sender_address, pending=use_pending_nonce) - base_payload = {'chainId': int(self.client.chain_id), + base_payload = {'chainId': hex(self.client.chain_id), 'nonce': nonce, 'from': sender_address} From cfc4e1139e36a3c0ee847664de6f8e2d0abc227b Mon Sep 17 00:00:00 2001 From: damon Date: Fri, 19 Mar 2021 07:14:45 -0700 Subject: [PATCH 2/3] attempt potential fix of #2602 by removing chainID from base_payload --- nucypher/blockchain/eth/interfaces.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nucypher/blockchain/eth/interfaces.py b/nucypher/blockchain/eth/interfaces.py index 699dd2095..42ef523d7 100644 --- a/nucypher/blockchain/eth/interfaces.py +++ b/nucypher/blockchain/eth/interfaces.py @@ -465,7 +465,7 @@ class BlockchainInterface: ) -> dict: nonce = self.client.get_transaction_count(account=sender_address, pending=use_pending_nonce) - base_payload = {'chainId': hex(self.client.chain_id), + base_payload = { 'nonce': nonce, 'from': sender_address} From e605e0dca8b9b069b984ec890c79556eff4b6a5e Mon Sep 17 00:00:00 2001 From: KPrasch Date: Fri, 19 Mar 2021 09:52:20 -0700 Subject: [PATCH 3/3] Create 2603.bugfix.rst Newsfragment for PR #2603 --- newsfragments/2603.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 newsfragments/2603.bugfix.rst diff --git a/newsfragments/2603.bugfix.rst b/newsfragments/2603.bugfix.rst new file mode 100644 index 000000000..05a1cfe32 --- /dev/null +++ b/newsfragments/2603.bugfix.rst @@ -0,0 +1 @@ +Support geth 1.10.x - Remove chainID from transaction payloads.