commit 33693a2d2a4bffad18f762c562c955d3104e5ff2
parent 5d82f02c1928ba86d709611f4bde4a5293ab9d31
Author: lash <dev@holbrook.no>
Date: Thu, 17 Aug 2023 08:29:15 +0100
Fix crash in load tx when no dialect set
Diffstat:
4 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
@@ -1,3 +1,5 @@
+- 0.5.2
+ * Fix crash in tx load when no dialect filter
- 0.5.1
* Pass dialect filter to load tx from src
* Apply dialect to receipts / results
diff --git a/chainlib/eth/runnable/get.py b/chainlib/eth/runnable/get.py
@@ -127,7 +127,7 @@ def get_transaction(conn, chain_spec, tx_hash, id_generator):
rcpt = conn.do(o)
if tx == None:
- tx = Tx(tx_src)
+ tx = Tx(tx_src, dialect_filter=settings.get('RPC_DIALECT_FILTER'))
if rcpt != None:
tx.apply_receipt(rcpt)
rcpt = snake_and_camel(rcpt)
diff --git a/chainlib/eth/tx.py b/chainlib/eth/tx.py
@@ -607,7 +607,9 @@ class Tx(BaseTx, Src):
def load_src(self, dialect_filter=eth_dialect_filter):
- src = dialect_filter.apply_tx(self.src)
+ src = self.src
+ if dialect_filter != None:
+ src = dialect_filter.apply_tx(src)
self.apply_src(src)
hsh = self.normal(self.src['hash'], SrcItem.HASH)
self.set_hash(hsh)
diff --git a/setup.cfg b/setup.cfg
@@ -1,6 +1,6 @@
[metadata]
name = chainlib-eth
-version = 0.5.1
+version = 0.5.2
description = Ethereum implementation of the chainlib interface
author = Louis Holbrook
author_email = dev@holbrook.no