Skip to content

Support payment from PDA accounts #18

Open
@febo

Description

@febo

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.

https://github.com/wen-community/wen-new-standard/blob/7468d3fe711ba7b4aa9b4ea6f9c0f8bf0ad8211c/programs/wen-royalty-distribution/src/instructions/update.rs#L123

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions