You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the royalty payment only support payer_address that is a wallet (SystemProgram owned accounts). There are scenarios where the funds are in escrow PDA accounts. Trying to make the payment from these accounts will failed since they are not owned by SystemProgram and therefore cannot be used in system_instruction::transfer.
There's no clean way to do this without switching to SPL transfers only. Open to ideas. Alternatively, transferring funds from PDA to Signer earlier in the transaction may work.
Currently, the royalty payment only support
payer_address
that is a wallet (SystemProgram
owned accounts). There are scenarios where the funds are in escrow PDA accounts. Trying to make the payment from these accounts will failed since they are not owned bySystemProgram
and therefore cannot be used insystem_instruction::transfer
.https://github.com/wen-community/wen-new-standard/blob/7468d3fe711ba7b4aa9b4ea6f9c0f8bf0ad8211c/programs/wen-royalty-distribution/src/instructions/update.rs#L123
The text was updated successfully, but these errors were encountered: