Skip to content

Commit

Permalink
fix: should use is_none()
Browse files Browse the repository at this point in the history
  • Loading branch information
magicalne committed Aug 31, 2022
1 parent cd170ee commit 71dbf3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/generator/src/verification/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ impl TransactionVerifier {
if p.is_native_transfer() {
// Verify to_id is CREATOR_ID
let to_id = raw_tx.to_id().unpack();
if self.polyjuice_creator_id.load_full().is_some() {
if self.polyjuice_creator_id.load_full().is_none() {
let polyjuice_creator_id = get_polyjuice_creator_id(
self.generator.rollup_context(),
self.generator.backend_manage(),
Expand Down

0 comments on commit 71dbf3e

Please sign in to comment.