Skip to content

Commit

Permalink
propagate oog for more pov cases
Browse files Browse the repository at this point in the history
  • Loading branch information
librelois committed Sep 13, 2024
1 parent 264ca14 commit d3e3ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frame/evm/src/runner/stack.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1143,6 +1143,7 @@ where

let actual_size = Pallet::<T>::account_code_metadata(address).size;
if actual_size > pre_size {
fp_evm::set_storage_oog();
return Err(ExitError::OutOfGas);
}
// Refund unused proof size
Expand Down

0 comments on commit d3e3ec3

Please sign in to comment.