Caveat - if it's a user doing the transfer, not a PDA, empty seeds might be ok
// CPI signer seeds missing invoke_signed(&instruction, &accounts, &[]);
// Provide signer seeds securely during CPI let seeds = &[b"vault".as_ref(), &[bump]]; invoke_signed(&instruction, &accounts, &[seeds]);
Last updated 2 months ago
Was this helpful?