metaplex-foundation / mpl-token-metadata

Program to attach additional data to Fungible or Non-Fungible tokens on Solana.
https://developers.metaplex.com/token-metadata
Other
120 stars 61 forks source link

Create Standard Delegate with Update Authority? #132

Open vfr292 opened 1 month ago

vfr292 commented 1 month ago

Hi,

Using a token's update authority I'm running:

  await delegateStandardV1(umi, {
    mint: mint.publicKey,
    tokenOwner: owner.publicKey,
    authority: update_authSigner, //note update authority
    delegate: standardDelegate.publicKey,
    tokenStandard: TokenStandard.FungibleAsset,
  }).sendAndConfirm(umi);

But getting an error:

IncorrectOwner: Incorrect account owner

When I use the tokenOwner's authority the error is resolved. I'm confident I have the update authority as I can use it to update the token. From the DelegateStandardV1InstructionAccounts (see below) it looks like I should be able to use the update authority:

    /** Update authority or token owner */
    authority?: Signer;

Is this a problem/bug or am I missing something? This is my first Metaplex project. Please let me know if more code would be helpful or if there is anything else I can provide.

Thank you :)

cd11103 commented 1 week ago

hi @vfr292 do you have any solution on this? I am trying to unlock/thaw the nft but it seems like the standarDelegate is the PDA i not sure how to sign the PDA.

vfr292 commented 5 days ago

Hi, no solution :(