Fix wrong variable name in encode cli
This commit is contained in:
parent
b983938d80
commit
7abce82eef
@ -45,6 +45,7 @@ from chainlib.error import SignerMissingException
|
|||||||
from chainlib.chain import ChainSpec
|
from chainlib.chain import ChainSpec
|
||||||
from chainlib.eth.runnable.util import decode_for_puny_humans
|
from chainlib.eth.runnable.util import decode_for_puny_humans
|
||||||
from chainlib.eth.jsonrpc import to_blockheight_param
|
from chainlib.eth.jsonrpc import to_blockheight_param
|
||||||
|
from chainlib.eth.address import to_checksum_address
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
logg = logging.getLogger()
|
logg = logging.getLogger()
|
||||||
@ -106,6 +107,8 @@ def main():
|
|||||||
print(strip_0x(code))
|
print(strip_0x(code))
|
||||||
return
|
return
|
||||||
|
|
||||||
|
exec_address = add_0x(to_checksum_address(config.get('_EXEC_ADDRESS')))
|
||||||
|
|
||||||
if signer == None:
|
if signer == None:
|
||||||
c = TxFactory(chain_spec)
|
c = TxFactory(chain_spec)
|
||||||
j = JSONRPCRequest(id_generator=rpc.id_generator)
|
j = JSONRPCRequest(id_generator=rpc.id_generator)
|
||||||
@ -122,7 +125,7 @@ def main():
|
|||||||
height = to_blockheight_param(config.get('_HEIGHT'))
|
height = to_blockheight_param(config.get('_HEIGHT'))
|
||||||
o['params'].append(height)
|
o['params'].append(height)
|
||||||
o = j.finalize(o)
|
o = j.finalize(o)
|
||||||
r = conn.do(r)
|
r = conn.do(o)
|
||||||
try:
|
try:
|
||||||
print(strip_0x(r))
|
print(strip_0x(r))
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user