Add dict output

This commit is contained in:
lash 2022-04-10 19:04:50 +00:00
parent 3cfeb9ce84
commit a76020b13b
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
2 changed files with 3 additions and 1 deletions

View File

@ -429,6 +429,8 @@ class TxFactory:
return self.build_raw(tx) return self.build_raw(tx)
elif tx_format == TxFormat.RAW_ARGS: elif tx_format == TxFormat.RAW_ARGS:
return strip_0x(tx['data']) return strip_0x(tx['data'])
elif tx_format == TxFormat.DICT:
return tx
raise NotImplementedError('tx formatting {} not implemented'.format(tx_format)) raise NotImplementedError('tx formatting {} not implemented'.format(tx_format))

View File

@ -1,6 +1,6 @@
[metadata] [metadata]
name = chainlib-eth name = chainlib-eth
version = 0.1.0b4 version = 0.1.0
description = Ethereum implementation of the chainlib interface description = Ethereum implementation of the chainlib interface
author = Louis Holbrook author = Louis Holbrook
author_email = dev@holbrook.no author_email = dev@holbrook.no