--- a/pallets/nonfungible/src/common.rs +++ b/pallets/nonfungible/src/common.rs @@ -255,8 +255,8 @@ token: TokenId, ) -> u128 { if >::get((self.id, token)) - .map(|a| a.owner == sender) - .unwrap_or(false) + .map(|a| a.owner != sender) + .unwrap_or(true) { 0 } else if >::get((self.id, token)) == Some(spender) {