mirror of
git://holbrook.no/eth-contract-registry
synced 2026-03-19 03:00:27 +01:00
Explicit prerelease of signer
This commit is contained in:
@@ -15,7 +15,6 @@ import logging
|
||||
# external imports
|
||||
import chainlib.eth.cli
|
||||
from chainlib.chain import ChainSpec
|
||||
from chainlib.eth.connection import EthHTTPConnection
|
||||
from chainlib.eth.tx import receipt
|
||||
from chainlib.eth.constant import ZERO_CONTENT
|
||||
from chainlib.error import JSONRPCException
|
||||
@@ -51,7 +50,10 @@ chain_spec = ChainSpec.from_chain_str(config.get('CHAIN_SPEC'))
|
||||
|
||||
|
||||
def out_element(e, w=sys.stdout):
|
||||
w.write(e[0] + '\t' + e[1] + '\n')
|
||||
if config.get('_RAW'):
|
||||
w.write(e[1] + '\n')
|
||||
else:
|
||||
w.write(e[0] + '\t' + e[1] + '\n')
|
||||
|
||||
|
||||
def element(ifc, conn, registry_address, identifier, w=sys.stdout):
|
||||
@@ -84,7 +86,7 @@ def main():
|
||||
raise ValueError('invalid checksum address for contract')
|
||||
|
||||
if identifier != None:
|
||||
element(c, conn, identifier, registry_address, w=sys.stdout)
|
||||
element(c, conn, registry_address, identifier, w=sys.stdout)
|
||||
else:
|
||||
ls(c, conn, registry_address, w=sys.stdout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user