git.delta.rocks / unique-network / refs/commits / 8df8e96cac26

difftreelog

fix PR

Trubnikov Sergey2023-03-09parent: #fe92d25.patch.diff
in: master

2 files changed

modifiedpallets/nonfungible/src/lib.rsdiffbeforeafterboth
1087 collection: &NonfungibleHandle<T>,1087 collection: &NonfungibleHandle<T>,
1088 token: TokenId,1088 token: TokenId,
1089 ) -> Result<Option<T::CrossAccountId>, DispatchError> {1089 ) -> Result<Option<T::CrossAccountId>, DispatchError> {
1090 ensure! {1090 ensure!(
1091 <TokenData<T>>::get((collection.id, token)).is_some()1091 <TokenData<T>>::get((collection.id, token)).is_some(),
1092 ,<CommonError<T>>::TokenNotFound1092 <CommonError<T>>::TokenNotFound
1093 };1093 );
1094 Ok(<Allowance<T>>::get((collection.id, token)))1094 Ok(<Allowance<T>>::get((collection.id, token)))
1095 }1095 }
10961096
modifiedtests/src/eth/nonFungible.test.tsdiffbeforeafterboth
--- a/tests/src/eth/nonFungible.test.ts
+++ b/tests/src/eth/nonFungible.test.ts
@@ -219,7 +219,7 @@
     }
   });
 
-  itEth.only('Can perform approve()', async ({helper}) => {
+  itEth('Can perform approve()', async ({helper}) => {
     const owner = await helper.eth.createAccountWithBalance(donor);
     const spender = helper.eth.createAccount();