Skip to content

Commit

Permalink
Fix owner_id check
Browse files Browse the repository at this point in the history
  • Loading branch information
elizabethengelman committed Jul 2, 2024
1 parent ed31ad2 commit 5d2765a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/soroban/nft/src/nft.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ impl IsNonFungible for MyNonFungibleToken {
self.get_nft(id).expect("NFT does not exist");
if let Some(owner_id) = self.nft_ids_to_owners.get(id) {
assert!(
owner_id != current_owner,
owner_id == current_owner,
"You are not the owner of this NFT"
);
// remove the current owner
Expand Down

0 comments on commit 5d2765a

Please sign in to comment.