You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Get gas costs directly from syscall handler (#3672)
commit-id:07f28871
---
**Stack**:
- #3682
- #3672 ⬅
⚠️ *Part of a stack created by [spr](https://github.com/ejoffe/spr). Do
not merge manually using the UI - doing so may have unexpected results.*
// Refund `SYSCALL_BASE_GAS_COST` as it was pre-charged.
179
+
// Note: It is pre-charged by the compiler: https://github.com/starkware-libs/sequencer/blob/v0.15.0-rc.2/crates/blockifier/src/blockifier_versioned_constants.rs#L1057
179
180
let required_gas = syscall_gas_cost - syscall_base_cost;
// Refund `SYSCALL_BASE_GAS_COST` as it was pre-charged.
181
+
// Note: It is pre-charged by the compiler: https://github.com/starkware-libs/sequencer/blob/v0.15.0-rc.2/crates/blockifier/src/blockifier_versioned_constants.rs#L1057
202
182
let required_gas = syscall_gas_cost - syscall_base_cost;
0 commit comments