chainlib

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

commit 7619b954b7b983d86dc5d9679cc63ecdad9de55a
parent 45575c3c2991c5e07a0407fab090483ebc2bfdef
Author: lash <dev@holbrook.no>
Date:   Thu, 13 Oct 2022 13:13:55 +0000

Add missing 'confirmed' arg to nonce oracle

Diffstat:
MCHANGELOG | 2++
Mchainlib/nonce.py | 3++-
Msetup.cfg | 2+-
3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG @@ -1,3 +1,5 @@ +- 0.3.2 + * Add missing "confirmed" arg to nonce oracle, expected by chainlib-eth test - 0.3.1 * Update man page generation script to use new cli flag builder - 0.3.0 diff --git a/chainlib/nonce.py b/chainlib/nonce.py @@ -1,8 +1,9 @@ class NonceOracle: - def __init__(self, address): + def __init__(self, address, confirmed=True): self.address = address self.nonce = self.get_nonce() + self.confirmed = confirmed def get_nonce(self): diff --git a/setup.cfg b/setup.cfg @@ -3,7 +3,7 @@ name=chainlib license=WTFPL2 author_email=dev@holbrook.no description=Generic blockchain access library and tooling -version=0.3.1 +version=0.3.2 url=https://gitlab.com/chaintools/chainlib author=Louis Holbrook