I want to update the metadata of an NFT using metaplex js library,
I followed the docs but I keep gettin an invalid token standard error.
const new_uri = await metaplex.nfts().uploadMetadata(
uri_obj,
)
await metaplex.nfts().update({
nftOrSft: nft,
uri:new_uri.uri
});
I created a new storage unit in airweave and got it’s url but I keep getting the error
and not just on the url but when I try to change the name for testing purposes aswell.
full error:
return resolvedError ? new ProgramError.ParsedProgramError(program, resolvedError, error.logs) : new ProgramError.UnknownProgramError(program, error);
^
ParsedProgramError: The program [TokenMetadataProgram] at address [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s] raised an error of code [135] that translates to "Invalid token standard".
Source: Program > TokenMetadataProgram [metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s]
Caused By: InvalidTokenStandard: Invalid token standard
Program Logs:
| Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s invoke [1]
| Program log: Instruction: Token Metadata Update
| Program log: Invalid token standard
| Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s consumed 18628 of 200000 compute units
| Program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s failed: custom program error: 0x87