Skip to content

Commit 5641bcc

Browse files
abelmarnkjoncinque
andauthored
Relax token program account check in instruction builder
Co-authored-by: Jon C <me@jonc.dev>
1 parent 18c4e13 commit 5641bcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

interface/src/instruction.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2119,7 +2119,7 @@ pub fn unwrap_lamports(
21192119
signer_pubkeys: &[&Pubkey],
21202120
amount: Option<u64>,
21212121
) -> Result<Instruction, ProgramError> {
2122-
check_program_account(token_program_id)?;
2122+
check_spl_token_program_account(token_program_id)?;
21232123
let amount = amount.into();
21242124
let data = TokenInstruction::UnwrapLamports { amount }.pack();
21252125

0 commit comments

Comments
 (0)