difftreelog
fix PR
in: master
2 files changed
pallets/nonfungible/src/lib.rsdiffbeforeafterboth1087 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>>::TokenNotFound1093 };1093 );1094 Ok(<Allowance<T>>::get((collection.id, token)))1094 Ok(<Allowance<T>>::get((collection.id, token)))1095 }1095 }10961096tests/src/eth/nonFungible.test.tsdiffbeforeafterboth219 }219 }220 });220 });221221222 itEth.only('Can perform approve()', async ({helper}) => {222 itEth('Can perform approve()', async ({helper}) => {223 const owner = await helper.eth.createAccountWithBalance(donor);223 const owner = await helper.eth.createAccountWithBalance(donor);224 const spender = helper.eth.createAccount();224 const spender = helper.eth.createAccount();225225