Skip to content

Commit 1bbd1ef

Browse files
committed
fix: update simple-claim tests for light-token v0.3 API
1 parent aaa6ea8 commit 1bbd1ef

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

airdrop-implementations/simple-claim/program/tests/functional.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ use light_client::indexer::GetCompressedTokenAccountsByOwnerOrDelegateOptions;
44
use light_compressed_claim::instruction::{
55
build_claim_and_decompress_instruction, compress, ClaimAccounts,
66
};
7-
use light_ctoken_sdk::constants::{ACCOUNT_COMPRESSION_PROGRAM_ID, LIGHT_SYSTEM_PROGRAM_ID};
8-
use light_ctoken_sdk::spl_interface::{get_spl_interface_pda, CreateSplInterfacePda};
7+
use light_token::constants::{ACCOUNT_COMPRESSION_PROGRAM_ID, LIGHT_SYSTEM_PROGRAM_ID};
8+
use light_token::spl_interface::{get_spl_interface_pda, CreateSplInterfacePda};
99
use light_program_test::accounts::test_accounts::NOOP_PROGRAM_ID;
1010
use light_program_test::program_test::TestRpc;
1111
use light_program_test::{program_test::LightProgramTest, Indexer, ProgramTestConfig, Rpc};
@@ -82,7 +82,7 @@ async fn test_claim_and_decompress() {
8282
.await
8383
.unwrap();
8484

85-
let spl_interface_pda = get_spl_interface_pda(&mint.pubkey());
85+
let spl_interface_pda = get_spl_interface_pda(&mint.pubkey(), false);
8686
let accounts = ClaimAccounts {
8787
claimant: claimant.pubkey(),
8888
fee_payer: payer.pubkey(),
@@ -170,7 +170,7 @@ pub fn find_claimant_pda(claimant: Pubkey, mint: Pubkey, slot: u64) -> (Pubkey,
170170

171171
pub async fn setup_token_pool(rpc: &mut LightProgramTest, mint: &Keypair, payer: &Keypair) {
172172
let create_spl_interface_pda_ix =
173-
CreateSplInterfacePda::new(payer.pubkey(), mint.pubkey(), spl_token::ID).instruction();
173+
CreateSplInterfacePda::new(payer.pubkey(), mint.pubkey(), spl_token::ID, false).instruction();
174174
rpc.create_and_send_transaction(&[create_spl_interface_pda_ix], &payer.pubkey(), &[&payer])
175175
.await
176176
.unwrap();

0 commit comments

Comments
 (0)