Use nonce for gas transaction create

This commit is contained in:
nolash 2021-02-15 19:29:08 +01:00
parent eb0162fc9a
commit 7838244a90
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def balance(address):
class GasTxFactory(TxFactory): class GasTxFactory(TxFactory):
def create(self, sender, recipient, value): def create(self, sender, recipient, value):
tx = self.template(sender, recipient) tx = self.template(sender, recipient, use_nonce=True)
tx['value'] = value tx['value'] = value
txe = EIP155Transaction(tx, tx['nonce'], tx['chainId']) txe = EIP155Transaction(tx, tx['nonce'], tx['chainId'])
self.signer.signTransaction(txe) self.signer.signTransaction(txe)

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = chainlib name = chainlib
version = 0.0.1a10 version = 0.0.1a11
description = Generic blockchain access library and tooling description = Generic blockchain access library and tooling
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no