New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update creators error: Incorrect account owner #261
Comments
It looks like the Metadata account you're trying to update is not owned by the Token Metadata program. Also, your update call is adding a new creator with 100% shares whilst the current |
Is that normal for NFTs minted via CMv2? |
No, NFTs minted via CMv2 should have the right owner on the Metadata account, unless it was a forked CMv2 program or something like that. Have you tried with another NFT to be sure? |
No nothing like that, CM was made using the depecrated
Yeah here's another one from the same candy machine: If I do:
still gives same
Could you please elaborate? I thought by specifying the creators property I'm replacing the old creators array with a new one? |
Hmmm... I'm super confused. I've checked your NFTs and they seem to have the correct programs as owners (both the Token Metadata for the Metadata account and the SPL Token for the Mint and the Token accounts). So I'm not sure why you'd get Which RPC and cluster are you using when running this update operation?
Ignore me, I assumed the first creator already had 100% but I can see now it's got 0%. Sorry about that. |
I've messed up somewhere I'm sure of it 😅
mainnet-beta, I've tried both my quiknode: |
Well, you seem to be doing everything properly so I'm not sure why you'd have this incorrect owner error. I'll reopen this until we find out what's causing this issue. |
Thanks, much appreciated |
@lorisleiva can you recommend another way to update creators at this point? |
@elliott-w Sure, you can use the |
Hi there 👋 I'm just going through all issues again today. and I was wondering if you'd find a solution to this issue. I'm still confused as to why the update operation wouldn't work since what you're trying to achieve has been heavily tested on the SDK. If you could provide a small repository for me to play with such that it's got the minimum amount of code required to reproduce the issue that'd be super helpful. Thanks again for raising this. |
Closing this due to inactivity. |
I don't know if I should revive this old thread but I think I know what's going on here. These TypeScript doesn't complain because the type of The workaround is to convert Here is a minimal example: const nfts = await metaplex.nfts().findAllByUpdateAuthority({
updateAuthority: myAuthority.publicKey,
});
await metaplex
.nfts()
.update({
nftOrSft: nfts[0],
authority: myAuthority,
newUpdateAuthority: myNewAuthority,
}) Here is a devnet example:
|
That worked for me! Thanks @sohrab- |
I'mn trying to update a list of nfts to have a new secondary creator (the one with the 100% share). I don't think it's possible to update the first creator because I think the first creator is signed by the candy machine that created the nft? Anyway here's my code:
Note, the
metaplex.use()
keypair I'm using is the same wallet used to create the candy machine and has authority to update the nfts. I keep getting the following error:And here's one of the NFTs I'm trying to update:
https://solscan.io/token/3woKb11Ajs9VkzHhMNkiyX5za1bV3STBmSaDHoQgmBKp#metadata
Any help would be appreciated. Thanks!
The text was updated successfully, but these errors were encountered: