Quantcast
Channel: Recent Questions - Solana Stack Exchange
Viewing all articles
Browse latest Browse all 7994

How to specify PDA owned by different program in anchor?

$
0
0

Specifying a PDA can easily be done by the following:

#[account(    seeds = [MY_FST_SEED, MY_SND_SEED],    bump)]pub my_account: Account<'info, MyCoolAccount>,

This makes the PDA be derived using the current program as the program seed though. How can I specify a PDA owned by a different program?


Viewing all articles
Browse latest Browse all 7994

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>