git.delta.rocks / unique-network / refs/commits / 112c00635f55

difftreelog

doc

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

1 file changed

modifiedpallets/nonfungible/src/erc.rsdiffbeforeafterboth
515 Ok(())515 Ok(())
516 }516 }
517517
518 /// @dev Not implemented518 /// @notice Get the approved address for a single NFT
519 /// @dev Throws if `_tokenId` is not a valid NFT
520 /// @param _tokenId The NFT to find the approved address for
521 /// @return The approved address for this NFT, or the zero address if there is none
519 fn get_approved(&self, token_id: U256) -> Result<Address> {522 fn get_approved(&self, token_id: U256) -> Result<Address> {
520 let token = token_id.try_into()?;523 let token = token_id.try_into()?;
521 let operator = <Pallet<T>>::get_allowance(self, token).map_err(dispatch_to_evm::<T>)?;524 let operator = <Pallet<T>>::get_allowance(self, token).map_err(dispatch_to_evm::<T>)?;