Skip to content

Commit

Permalink
[KGA-10]: warmup all precompiles
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat committed Nov 19, 2024
1 parent a179b42 commit f514c9c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cairo_zero/kakarot/state.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ namespace State {
alloc_locals;
tempvar accounts_ptr = state.accounts;
with accounts_ptr {
// EVM Precompiles
Internals._cache_precompile(1);
Internals._cache_precompile(2);
Internals._cache_precompile(3);
Expand All @@ -147,6 +148,15 @@ namespace State {
Internals._cache_precompile(8);
Internals._cache_precompile(9);
Internals._cache_precompile(10);
// RIP Precompiles
Internals._cache_precompile(Constants.P256VERIFY_PRECOMPILE);
// Kakarot Precompiles
Internals._cache_precompile(Constants.CAIRO_WHITELISTED_CALL_PRECOMPILE);
Internals._cache_precompile(Constants.CAIRO_MESSAGING_PRECOMPILE);
Internals._cache_precompile(Constants.CAIRO_MULTICALL_PRECOMPILE);
Internals._cache_precompile(Constants.CAIRO_CALL_PRECOMPILE);
}
tempvar state = new model.State(
accounts_start=state.accounts_start,
Expand Down

0 comments on commit f514c9c

Please sign in to comment.