--- a/pallets/nonfungible/src/erc.rs +++ b/pallets/nonfungible/src/erc.rs @@ -738,14 +738,19 @@ >::transfer(self, &caller, &to, token, &budget).map_err(dispatch_to_evm::)?; Ok(()) } - + /// @notice Transfer ownership of an NFT /// @dev Throws unless `msg.sender` is the current owner. Throws if `to` /// is the zero address. Throws if `tokenId` is not a valid NFT. /// @param to The new owner /// @param tokenId The NFT to transfer #[weight(>::transfer())] - fn transfer_cross(&mut self, caller: caller, to: EthCrossAccount, token_id: uint256) -> Result { + fn transfer_cross( + &mut self, + caller: caller, + to: EthCrossAccount, + token_id: uint256, + ) -> Result { let caller = T::CrossAccountId::from_eth(caller); let to = to.into_sub_cross_account::()?; let token = token_id.try_into()?; @@ -756,7 +761,7 @@ >::transfer(self, &caller, &to, token, &budget).map_err(dispatch_to_evm::)?; Ok(()) } - + /// @notice Transfer ownership of an NFT from cross account address to cross account address /// @dev Throws unless `msg.sender` is the current owner. Throws if `to` /// is the zero address. Throws if `tokenId` is not a valid NFT. --- a/pallets/refungible/src/erc.rs +++ b/pallets/refungible/src/erc.rs @@ -756,7 +756,12 @@ /// @param to The new owner /// @param tokenId The RFT to transfer #[weight(>::transfer_creating_removing())] - fn transfer_cross(&mut self, caller: caller, to: EthCrossAccount, token_id: uint256) -> Result { + fn transfer_cross( + &mut self, + caller: caller, + to: EthCrossAccount, + token_id: uint256, + ) -> Result { let caller = T::CrossAccountId::from_eth(caller); let to = to.into_sub_cross_account::()?; let token = token_id.try_into()?; --- a/tests/src/eth/base.test.ts +++ b/tests/src/eth/base.test.ts @@ -117,7 +117,7 @@ }); itEth('ERC721UniqueExtensions support', async ({helper}) => { - await checkInterface(helper, '0x244543ee', true, true); + await checkInterface(helper, '0x0e9fc611', true, true); }); itEth('ERC721Burnable - 0x42966c68 - support', async ({helper}) => {