diff --git a/smart-contracts/assembly/contracts/NFT/NFT.ts b/smart-contracts/assembly/contracts/NFT/NFT.ts index 4a6d49e..6894c0d 100644 --- a/smart-contracts/assembly/contracts/NFT/NFT.ts +++ b/smart-contracts/assembly/contracts/NFT/NFT.ts @@ -24,7 +24,6 @@ import { _isApprovedForAll, _updateBalanceOf, _getBalanceOf, - assertIsOwner, _constructor, } from './NFT-internals'; @@ -135,26 +134,6 @@ export function nft1_tokenURI(binaryArgs: StaticArray): StaticArray { } } -/** - * Set a token URI (external link written in NFT where pictures or others are stored). - * If not set the tokenURI will be the baseURI + tokenId - * @param binaryArgs - u64 serialized tokenID with `Args` + URI string - */ -export function nft1_setTokenURI(binaryArgs: StaticArray): void { - const args = new Args(binaryArgs); - const tokenId = args - .nextU64() - .expect('token id argument is missing or invalid'); - - assertIsMinted(tokenId); - assertIsOwner(Context.caller().toString(), tokenId); - - Storage.set( - tokenURIKey + tokenId.toString(), - args.nextString().expect('tokenURI argument is missing or invalid'), - ); -} - /** * Returns the base URI * @param _ - unused see https://github.com/massalabs/massa-sc-std/issues/18