Fix wrong variable name in encode cli

This commit is contained in:
nolash 2021-10-18 13:28:53 +02:00
parent b983938d80
commit 7abce82eef
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746
1 changed files with 4 additions and 1 deletions

View File

@ -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