Add dict output

This commit is contained in:
lash
2022-04-10 19:04:50 +00:00
parent 3cfeb9ce84
commit a76020b13b
2 changed files with 3 additions and 1 deletions

View File

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