Skip to content

Commit

Permalink
Merge pull request #90 from cygaar/stylus
Browse files Browse the repository at this point in the history
Fix Address has_code check
  • Loading branch information
rachel-bousfield authored Dec 4, 2023
2 parents be5e5c8 + d01b313 commit 725abb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 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 == b256!("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")
!hash.is_zero()
&& hash != b256!("c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470")
}
}

0 comments on commit 725abb9

Please sign in to comment.