Skip to content
This repository was archived by the owner on Sep 13, 2024. It is now read-only.

Commit c99632f

Browse files
committed
Fix missing nonce
1 parent 98cd38a commit c99632f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

axie-utils/axie_utils/scatter.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ def approve_contract(self):
5757
115792089237316195423570985008687907853269984665640564039457584007913129639935
5858
).buildTransaction({
5959
"gas": 1000000,
60-
"gasPrice": self.w3.toWei(1, "gwei")
60+
"gasPrice": self.w3.toWei(1, "gwei"),
61+
"nonce": get_nonce(self.from_acc)
6162
})
6263
signed_approval = self.w3.eth.account.sign_transaction(
6364
approve_tx,
@@ -247,7 +248,8 @@ def approve_contract(self):
247248
115792089237316195423570985008687907853269984665640564039457584007913129639935
248249
).buildTransaction({
249250
"gas": 1000000,
250-
"gasPrice": self.w3.toWei(1, "gwei")
251+
"gasPrice": self.w3.toWei(1, "gwei"),
252+
"nonce": nonce
251253
})
252254
data = self.w3.toBytes(hexstr=approve_tx['data'])
253255
to = self.w3.toBytes(hexstr=TOKEN[self.token])

0 commit comments

Comments
 (0)