From 7838244a90f2c4f8482a56a337f15cf009d361a8 Mon Sep 17 00:00:00 2001 From: nolash Date: Mon, 15 Feb 2021 19:29:08 +0100 Subject: [PATCH] Use nonce for gas transaction create --- chainlib/eth/gas.py | 2 +- setup.cfg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/chainlib/eth/gas.py b/chainlib/eth/gas.py index d8fa202..55a00e0 100644 --- a/chainlib/eth/gas.py +++ b/chainlib/eth/gas.py @@ -27,7 +27,7 @@ def balance(address): class GasTxFactory(TxFactory): def create(self, sender, recipient, value): - tx = self.template(sender, recipient) + tx = self.template(sender, recipient, use_nonce=True) tx['value'] = value txe = EIP155Transaction(tx, tx['nonce'], tx['chainId']) self.signer.signTransaction(txe) diff --git a/setup.cfg b/setup.cfg index 5c7d09f..9cc1592 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib -version = 0.0.1a10 +version = 0.0.1a11 description = Generic blockchain access library and tooling author = Louis Holbrook author_email = dev@holbrook.no