difftreelog
fix PR
in: master
2 files changed
pallets/nonfungible/src/lib.rsdiffbeforeafterboth--- a/pallets/nonfungible/src/lib.rs
+++ b/pallets/nonfungible/src/lib.rs
@@ -1087,10 +1087,10 @@
collection: &NonfungibleHandle<T>,
token: TokenId,
) -> Result<Option<T::CrossAccountId>, DispatchError> {
- ensure! {
- <TokenData<T>>::get((collection.id, token)).is_some()
- ,<CommonError<T>>::TokenNotFound
- };
+ ensure!(
+ <TokenData<T>>::get((collection.id, token)).is_some(),
+ <CommonError<T>>::TokenNotFound
+ );
Ok(<Allowance<T>>::get((collection.id, token)))
}
tests/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