clockwork icon indicating copy to clipboard operation
clockwork copied to clipboard

PDA seeds helper function

Open nickgarfield opened this issue 3 years ago • 1 comments

Create helper functions on all state accounts to quickly grab the PDA seeds for Anchor verification.

Screen Shot 2022-09-06 at 19 37 27

nickgarfield avatar Sep 07 '22 00:09 nickgarfield

So implement a function on each Account struct that takes necessary inputs and gives the seeds?

anoushk1234 avatar Oct 13 '22 09:10 anoushk1234

Relevant thread: https://twitter.com/time_composer/status/1599123089077698561

nickgarfield avatar Dec 03 '22 20:12 nickgarfield

This feature really should be provided at the Anchor level.

nickgarfield avatar Dec 03 '22 20:12 nickgarfield

Closing for now since Anchor will be updating the syntax around this in coming versions.

nickgarfield avatar Dec 05 '22 04:12 nickgarfield

hey @nickgarfield sorry for the delayed response, we can continue the discussion in the twitter thread

anoushk1234 avatar Dec 06 '22 05:12 anoushk1234