chainlib-eth

Ethereum implementation of the chainlib interface
Log | Files | Refs | README | LICENSE

commit 7abce82eef7dfe60e292cf8f445dfa841e725d80
parent b983938d8031a916d98b178a26e15ca5ef36487e
Author: nolash <dev@holbrook.no>
Date:   Mon, 18 Oct 2021 13:28:53 +0200

Fix wrong variable name in encode cli

Diffstat:
Mchainlib/eth/runnable/encode.py | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/chainlib/eth/runnable/encode.py b/chainlib/eth/runnable/encode.py @@ -45,6 +45,7 @@ from chainlib.error import SignerMissingException from chainlib.chain import ChainSpec from chainlib.eth.runnable.util import decode_for_puny_humans from chainlib.eth.jsonrpc import to_blockheight_param +from chainlib.eth.address import to_checksum_address logging.basicConfig(level=logging.WARNING) logg = logging.getLogger() @@ -106,6 +107,8 @@ def main(): print(strip_0x(code)) return + exec_address = add_0x(to_checksum_address(config.get('_EXEC_ADDRESS'))) + if signer == None: c = TxFactory(chain_spec) j = JSONRPCRequest(id_generator=rpc.id_generator) @@ -122,7 +125,7 @@ def main(): height = to_blockheight_param(config.get('_HEIGHT')) o['params'].append(height) o = j.finalize(o) - r = conn.do(r) + r = conn.do(o) try: print(strip_0x(r)) return