From e9b7d276706ef4b419391020dafdf18aad9bfead Mon Sep 17 00:00:00 2001 From: nolash Date: Fri, 7 Jan 2022 12:27:02 +0000 Subject: [PATCH] Add raw output to notx/nosign encode (args only) --- chainlib/eth/runnable/encode.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chainlib/eth/runnable/encode.py b/chainlib/eth/runnable/encode.py index 33fc11d..892bde9 100644 --- a/chainlib/eth/runnable/encode.py +++ b/chainlib/eth/runnable/encode.py @@ -112,6 +112,9 @@ def main(): exec_address = add_0x(to_checksum_address(config.get('_EXEC_ADDRESS'))) if signer == None or config.true('_NOTX'): + if config.true('_RAW'): + print(strip_0x(code)) + return c = TxFactory(chain_spec) j = JSONRPCRequest(id_generator=rpc.id_generator) o = j.template()