I have a PDA generated with:
const SEED: &str = "My Seed";
let pda = Pubkey::create_with_seed(program_id, SEED, &owner_id).unwrap();
Where program_id
and owner_id
are some fixed Pubkey
's.
I want to call this:
invoke_signed(
&my_instruction,
&[...], \\Slice of AccountInfos, pda is among them
&[&[...]],\\Seeds for accounts to be signed
)
Then I pass SEED.as_bytes()
a as a seed, I get InvalidSeed
error.
What to use in this field?