Skip to content

Commit

Permalink
Fix Address has_code check
Browse files Browse the repository at this point in the history
  • Loading branch information
cygaar committed Dec 4, 2023
1 parent be5e5c8 commit e000029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stylus-sdk/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ impl AddressVM for Address {

fn has_code(&self) -> bool {
let hash = self.codehash();
hash.is_zero()
!hash.is_zero()
|| hash == b256!("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")
}
}

0 comments on commit e000029

Please sign in to comment.