Skip to content

Commit

Permalink
Fixed excess new address gas for CALL precompile
Browse files Browse the repository at this point in the history
  • Loading branch information
Parker Thompson committed Jul 30, 2022
1 parent 6909aec commit b3d6bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/revm/src/subroutine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,7 @@ impl SubRoutine {
pub fn load_account_exist<DB: Database>(&mut self, address: H160, db: &mut DB) -> (bool, bool) {
let (acc, is_cold) = self.load_code(address, db);
let info = acc.info.clone();
let is_empty = info.is_empty();
let is_empty = info.is_empty() && !acc.filth.is_precompile();
(is_cold, !is_empty)
}

Expand Down

0 comments on commit b3d6bf2

Please sign in to comment.