Skip to content

Commit

Permalink
prefund precompiles
Browse files Browse the repository at this point in the history
  • Loading branch information
obatirou committed Nov 22, 2024
1 parent 72706ae commit 03bc4c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kakarot_scripts/deployment/evm_deployments.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from kakarot_scripts.utils.kakarot import deploy as deploy_evm
from kakarot_scripts.utils.kakarot import deploy_and_fund_evm_address
from kakarot_scripts.utils.kakarot import dump_deployments as dump_evm_deployments
from kakarot_scripts.utils.kakarot import fund_address
from kakarot_scripts.utils.kakarot import get_deployments as get_evm_deployments
from kakarot_scripts.utils.starknet import call, call_contract, execute_calls
from kakarot_scripts.utils.starknet import get_deployments as get_starknet_deployments
Expand Down Expand Up @@ -64,6 +65,11 @@ async def deploy_evm_contracts():
}
await invoke("kakarot", "set_coinbase", int(contract.address, 16))

# %% Pre-fund precompiles
# see https://github.com/ethereum/go-ethereum/blob/5230b06d5151e214e80762eebed9196a670c52b1/core/vm/instructions.go#L404
for i in range(1, 10):
logger.info(f"ℹ️ YOOOOOOOOO {hex(i)}")
await fund_address(hex(i), 1 / 1e18)
# %% Tear down
dump_evm_deployments(evm_deployments)

Expand Down

0 comments on commit 03bc4c6

Please sign in to comment.