Skip to content

Commit

Permalink
post deployment check
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Nov 25, 2024
1 parent e6eec9c commit 14d4d13
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions kakarot_scripts/deployment/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
deploy_and_fund_evm_address,
eth_balance_of,
get_contract,
get_starknet_address,
)
from kakarot_scripts.utils.starknet import (
call,
Expand Down Expand Up @@ -92,6 +93,14 @@ async def main():
f"💰 EVM deployer balance:\n L2: {l2_balance} ETH\n L1: {l1_balance} ETH"
)

# check precompiles received funds
for i in range(1, 10):
starknet_address = await get_starknet_address(hex(i))
balance = await get_balance(starknet_address)
assert (
balance > 0
), f"Failed to fund precompile {i} starknet address {starknet_address}"


# %%

Expand Down

0 comments on commit 14d4d13

Please sign in to comment.