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
--- 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)))
 	}
 
modifiedtests/src/eth/nonFungible.test.tsdiffbeforeafterboth
219 }219 }
220 });220 });
221221
222 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