solana-program-library icon indicating copy to clipboard operation
solana-program-library copied to clipboard

transfer-hook: Relax requirement of validation account

Open joncinque opened this issue 6 months ago • 0 comments

Problem

It's possible to write a perfectly good transfer hook without the extra account metas, and just the transfer hook program. For example, if you add a field to the metadata portion of the mint, a transfer hook program can check only that, so it has no need for anything else.

Summary of changes

Relax the requirement that the extra account metas account is provided. This was surprisingly straightforward, but maybe a little brittle, so let me know what you think.

joncinque avatar Aug 01 '24 12:08 joncinque