chainlib

Generic blockchain access library and tooling
Log | Files | Refs | README | LICENSE

commit 7838244a90f2c4f8482a56a337f15cf009d361a8
parent eb0162fc9a6db49fda3c8865700eab3d440bd4dc
Author: nolash <dev@holbrook.no>
Date:   Mon, 15 Feb 2021 19:29:08 +0100

Use nonce for gas transaction create

Diffstat:
Mchainlib/eth/gas.py | 2+-
Msetup.cfg | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 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 @@ -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