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:
parent
ef5ddec6bc
commit
6c4aad8610
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue