v0.1.0-pre.061
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// file: kb-pipeline/src/solana_ata_stateful.rs
|
||||
// version: 2
|
||||
// version: 3
|
||||
|
||||
//! Stateful Localnet and Devnet readiness checks for ATA operations.
|
||||
|
||||
@@ -1023,17 +1023,17 @@ mod tests {
|
||||
},
|
||||
2_100_000,
|
||||
);
|
||||
let ata = super::derive_ata(&wallet, &mint, kb_program_ids::SPL_TOKEN2022_PROGRAM_ID)
|
||||
let ata = super::derive_ata(&wallet, &mint, kb_program_ids::SPL_TOKEN_2022_PROGRAM_ID)
|
||||
.unwrap_or_else(|error| panic!("ATA derivation failed: {error}"));
|
||||
let mut cache = super::AccountCache::new();
|
||||
cache.insert(
|
||||
mint.0.clone(),
|
||||
std::option::Option::Some(mint_account(kb_program_ids::SPL_TOKEN2022_PROGRAM_ID)),
|
||||
std::option::Option::Some(mint_account(kb_program_ids::SPL_TOKEN_2022_PROGRAM_ID)),
|
||||
);
|
||||
cache.insert(
|
||||
ata.0,
|
||||
std::option::Option::Some(token_account(
|
||||
kb_program_ids::SPL_TOKEN2022_PROGRAM_ID,
|
||||
kb_program_ids::SPL_TOKEN_2022_PROGRAM_ID,
|
||||
&mint,
|
||||
&pubkey(kb_program_ids::CONFIG_PROGRAM_ID),
|
||||
)),
|
||||
@@ -1116,13 +1116,13 @@ mod tests {
|
||||
mint: mint.clone(),
|
||||
token_program: kb_lib::ExSplAssociatedTokenProgram::Token2022,
|
||||
};
|
||||
let ata = super::derive_ata(&wallet, &mint, kb_program_ids::SPL_TOKEN2022_PROGRAM_ID)
|
||||
let ata = super::derive_ata(&wallet, &mint, kb_program_ids::SPL_TOKEN_2022_PROGRAM_ID)
|
||||
.unwrap_or_else(|error| panic!("ATA derivation failed: {error}"));
|
||||
let mut cache = super::AccountCache::new();
|
||||
cache.insert(
|
||||
ata.0,
|
||||
std::option::Option::Some(token_account(
|
||||
kb_program_ids::SPL_TOKEN2022_PROGRAM_ID,
|
||||
kb_program_ids::SPL_TOKEN_2022_PROGRAM_ID,
|
||||
&mint,
|
||||
&wallet,
|
||||
)),
|
||||
|
||||
Reference in New Issue
Block a user