metaplex-foundation / metaplex

A directory of what the Metaplex Foundation works on!
https://metaplex.com
Apache License 2.0
3.32k stars 6.26k forks source link

[Bug]: Can't sign creator after transfer authority #1799

Closed LipLoody closed 2 years ago

LipLoody commented 2 years ago

Which package is this bug report for?

storefront

Issue description

When I update the candy machine to transfer the authority to a wallet: AAA The sign process (in JS not in CLI) executed by AAA fail with error message :
Error: Transaction failed: Incorrect account owner there you can find the transaction : https://solscan.io/tx/4TpJCaNYTCVcasuA83GmdNCwsvQEaMMmNvf13W6tfNNVMSJSWhCiAGFVxefeHG8L4yrDGjbVNrn2pNmFcd79XeV9?cluster=devnet

There you can find the candymachine show command:

...Candy Machine...
Key: FJqZKgoroNukG3HRUCjWWHkNFoPLYhMuGk6dAmeErc36
1st creator : 46Hx8ExdrpJj8gHqwghvDtx2ndV6XPsAPPFuW7V8oYvf
authority:  7pS1dZcGWBncf7oqfxbZ2ZCVzikbENpTDtLUhciiYx6E
wallet:  7pS1dZcGWBncf7oqfxbZ2ZCVzikbENpTDtLUhciiYx6E
tokenMint:  null
uuid:  FJqZKg
price:  0
itemsAvailable:  3000
itemsRedeemed:  1
goLiveDate:  1970-01-01T00:00:00.000Z
symbol:  LC
sellerFeeBasisPoints:  1500
creators: 
7pS1dZcGWBncf7oqfxbZ2ZCVzikbENpTDtLUhciiYx6E at 100 %
maxSupply:  0
retainAuthority:  true
isMutable:  false
hidden settings:  {
  name: 'Le Cheval',
  uri: 'https://arweave.net/n8yx7v-GYwM3I3k1XLuqSlWTjJc1OAutsuFvG8gQw9M',
  hash: [
     *********
  ]
}
No end settings detected
No captcha for this candy machine
whitelist settings: 
Mint:  WL7mAxS7rixLHJ2fcJrKeQZMnTR9JcLdHpj3mkF58zi
Mode:  { burnEveryTime: {} }
Presale:  false
Discounted Price:  N/A

the strange thing is when I get the state of candymachine like :

const program = new anchor.Program(idl, CANDY_MACHINE_PROGRAM, provider);

const state: any = await program.account.candyMachine.fetch(candyMachineId);

I have in the state the creators.verified : true

But after the mint the creator is not verified as we can see there: https://solscan.io/token/EFAJXN3NXp2amYvywGGPBj8Qv3UhCoHS2Km5typsorKH?cluster=devnet#txs

Step to reproduce:

Command

No response

Relevant log output

Error: Transaction failed: Incorrect account owner

Operating system

Linux

Priority this issue should have

Medium (should be fixed soon)

Check the Docs First

stegaBOB commented 2 years ago

That's quite interesting. We will look into this!

LipLoody commented 2 years ago

That's quite interesting. We will look into this!

Can I help you to facilitate the investigation in your side ?

stegaBOB commented 2 years ago

So this is a storefront method? Or is it in our cli? Just confirming

LipLoody commented 2 years ago

So this is a storefront method? Or is it in our cli? Just confirming

Yes, it's in storefront method : https://github.com/metaplex-foundation/metaplex/blob/9d5a5c6d668cd9c597cff8c63dfba00dee2f72f0/js/packages/web/src/actions/sendSignMetadata.ts#L10

LipLoody commented 2 years ago

Hello @stegaBOB,

Did you have time to investigate ?

Can I help you in another way ?

phflouMusic commented 2 years ago

I have the same issue, any update ?

github-actions[bot] commented 2 years ago

This Issue has received no activity for 30 days. We will close it in 2 days, please reopen if you are still experiencing this issue.