mirror of
git://holbrook.no/eth-contract-registry
synced 2024-12-22 12:27:31 +01:00
rehabilitate runnable
This commit is contained in:
parent
a12cdb0ef3
commit
c60a91b77b
@ -57,8 +57,8 @@ if args.vv:
|
|||||||
elif args.v:
|
elif args.v:
|
||||||
logg.setLevel(logging.INFO)
|
logg.setLevel(logging.INFO)
|
||||||
|
|
||||||
block_last = args.w
|
|
||||||
block_all = args.ww
|
block_all = args.ww
|
||||||
|
block_last = args.w or block_all
|
||||||
|
|
||||||
passphrase_env = 'ETH_PASSPHRASE'
|
passphrase_env = 'ETH_PASSPHRASE'
|
||||||
if args.env_prefix != None:
|
if args.env_prefix != None:
|
||||||
|
@ -25,7 +25,7 @@ from chainlib.eth.constant import ZERO_CONTENT
|
|||||||
from chainlib.error import JSONRPCException
|
from chainlib.error import JSONRPCException
|
||||||
|
|
||||||
# local imports
|
# local imports
|
||||||
from eth_contract_registry import Registry
|
from eth_contract_registry.registry import ContractRegistry
|
||||||
|
|
||||||
logging.basicConfig(level=logging.WARNING)
|
logging.basicConfig(level=logging.WARNING)
|
||||||
logg = logging.getLogger()
|
logg = logging.getLogger()
|
||||||
@ -88,7 +88,7 @@ def ls(ifc, fmt=default_format, w=sys.stdout):
|
|||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
c = Registry(chain_spec)
|
c = ContractRegistry(chain_spec)
|
||||||
if identifier != None:
|
if identifier != None:
|
||||||
element(c, identifier, fmt=fmt, w=sys.stdout)
|
element(c, identifier, fmt=fmt, w=sys.stdout)
|
||||||
else:
|
else:
|
||||||
|
@ -60,8 +60,8 @@ if args.vv:
|
|||||||
elif args.v:
|
elif args.v:
|
||||||
logg.setLevel(logging.INFO)
|
logg.setLevel(logging.INFO)
|
||||||
|
|
||||||
block_last = args.w
|
|
||||||
block_all = args.ww
|
block_all = args.ww
|
||||||
|
block_last = args.w or block_all
|
||||||
|
|
||||||
passphrase_env = 'ETH_PASSPHRASE'
|
passphrase_env = 'ETH_PASSPHRASE'
|
||||||
if args.env_prefix != None:
|
if args.env_prefix != None:
|
||||||
|
BIN
python/gmon.out
BIN
python/gmon.out
Binary file not shown.
Loading…
Reference in New Issue
Block a user