Use nonce for gas transaction create
This commit is contained in:
parent
eb0162fc9a
commit
7838244a90
@ -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)
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user