From dee523bada1d0684a03e85f8753edee7af8a477c Mon Sep 17 00:00:00 2001 From: nolash Date: Sun, 10 Oct 2021 17:56:30 +0200 Subject: [PATCH] Add raw args option for tx factory --- chainlib/eth/tx.py | 2 ++ setup.cfg | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chainlib/eth/tx.py b/chainlib/eth/tx.py index 7b0ee86..c92111d 100644 --- a/chainlib/eth/tx.py +++ b/chainlib/eth/tx.py @@ -419,6 +419,8 @@ class TxFactory: return self.build(tx, id_generator=id_generator) elif tx_format == TxFormat.RLP_SIGNED: return self.build_raw(tx) + elif tx_format == TxFormat.RAW_ARGS: + return tx['data'] raise NotImplementedError('tx formatting {} not implemented'.format(tx_format)) diff --git a/setup.cfg b/setup.cfg index 0e20f3a..f133159 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = chainlib-eth -version = 0.0.9rc3 +version = 0.0.10a1 description = Ethereum implementation of the chainlib interface author = Louis Holbrook author_email = dev@holbrook.no