Skip to content

Commit

Permalink
add new tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tevrat-aksoy committed Nov 14, 2023
1 parent e668816 commit 1349232
Show file tree
Hide file tree
Showing 2 changed files with 290 additions and 37 deletions.
2 changes: 1 addition & 1 deletion src/gas/gas_utils.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ fn pay_execution_fee_order(

// 63/64 gas is forwarded to external calls, reduce the startingGas to account for this
let reduced_starting_gas = starting_gas - sn_gasleft(array![100]) / 63;
let gas_used = reduced_starting_gas - sn_gasleft(array![100]);
let gas_used = reduced_starting_gas - sn_gasleft(array![0]);

// each external call forwards 63/64 of the remaining gas
let mut execution_fee_for_keeper = adjust_gas_usage(data_store, gas_used)
Expand Down
Loading

0 comments on commit 1349232

Please sign in to comment.