Skip to content

Commit

Permalink
fix CREATE2 gas (#912)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat authored Sep 6, 2024
1 parent 221da51 commit 717a757
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions crates/evm/src/instructions/system_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,6 @@ impl SystemOperations of SystemOperationsTrait {
fn exec_create2(ref self: VM) -> Result<(), EVMError> {
ensure(!self.message().read_only, EVMError::WriteInStaticContext)?;

// TODO: add dynamic gas costs
self.charge_gas(gas::CREATE)?;

let create_args = self.prepare_create(CreateType::Create2)?;
self.generic_create(create_args)
}
Expand Down

0 comments on commit 717a757

Please sign in to comment.