chore: clean up
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-03-07 12:25:45 +03:00
parent 1a769205ea
commit 0dc25002f6
3 changed files with 46 additions and 38 deletions

View File

@@ -50,7 +50,6 @@ ExtraArgs = {"skip_gen": str, "skip_deploy": str, "target": str, "path": str, "p
def execute(config: Config, eargs: ExtraArgs):
print(f"eargs: {eargs}")
directory = eargs.path
target = eargs.target
skip_gen = eargs.skip_gen
@@ -66,8 +65,12 @@ def execute(config: Config, eargs: ExtraArgs):
print(contract)
print(f"Meta: {config.get('META_URL')}")
print(f"ChainSpec: {config.get('CHAIN_SPEC', contract.network.chain_spec(target))}")
print(f"RPC: {config.get('RPC_PROVIDER')}\n")
if not skip_deploy:
ready_to_deploy = input("Ready to deploy? (y/n): ")
ready_to_deploy = input("Are you ready to Deploy? (y/n): ")
if ready_to_deploy == "y":
deploy_contract(
config=config,
@@ -76,7 +79,7 @@ def execute(config: Config, eargs: ExtraArgs):
)
print("Deployed")
else:
print("Not deploying")
print("Skipping deployment")
if __name__ == "__main__":