solana: nft_bridge: Replace deprecated function

The replacement function seems like it does the same thing but with an
instruction enum instead.
This commit is contained in:
Chirantan Ekbote 2022-09-06 18:17:35 +09:00 committed by Chirantan Ekbote
parent ef5ddec6bc
commit 6c4aad8610
1 changed files with 2 additions and 2 deletions

View File

@ -134,7 +134,7 @@ pub fn complete_native(
return Err(InvalidAssociatedAccount.into());
}
// Create associated token account
let ix = spl_associated_token_account::create_associated_token_account(
let ix = spl_associated_token_account::instruction::create_associated_token_account(
accs.payer.info().key,
accs.to_authority.info().key,
accs.mint.info().key,
@ -267,7 +267,7 @@ pub fn complete_wrapped(
return Err(InvalidAssociatedAccount.into());
}
// Create associated token account
let ix = spl_associated_token_account::create_associated_token_account(
let ix = spl_associated_token_account::instruction::create_associated_token_account(
accs.payer.info().key,
accs.to_authority.info().key,
accs.mint.info().key,