Skip to content

Commit

Permalink
Update starknet_deployments.py
Browse files Browse the repository at this point in the history
  • Loading branch information
donatik27 authored Nov 30, 2024
1 parent 71e205d commit 28654b7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions kakarot_scripts/deployment/starknet_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,12 @@ async def deploy_starknet_contracts(account):
NETWORK["chain_id"],
)
try:
coinbase = (
await call("EVM", "get_coinbase", address=starknet_deployments["EVM"])
)[0]
except Exception:
coinbase = None
coinbase = (
await call("EVM", "get_coinbase", address=starknet_deployments["EVM"])
)[0]
except Exception as e:
logger.error(f"❌ Failed to get coinbase: {str(e)}")
coinbase = None
if coinbase != COINBASE:
logger.info(f"ℹ️ Setting EVM coinbase to {COINBASE}")
await invoke(
Expand Down

0 comments on commit 28654b7

Please sign in to comment.