This commit is contained in:
Pravdyvy 2025-12-11 14:47:11 +02:00
parent f77481f3b5
commit 0be88d4343
2 changed files with 8 additions and 4 deletions

View File

@ -1705,7 +1705,9 @@ pub fn prepare_function_map() -> HashMap<String, TestFunction> {
// Burn 3 tokens from `recipient_acc`
let subcommand = TokenProgramAgnosticSubcommand::Burn {
definition: Some(make_public_account_input_from_str(&definition_account_id.to_string())),
definition: Some(make_public_account_input_from_str(
&definition_account_id.to_string(),
)),
definition_npk: None,
definition_ipk: None,
holder: make_public_account_input_from_str(&recipient_account_id.to_string()),
@ -1748,7 +1750,9 @@ pub fn prepare_function_map() -> HashMap<String, TestFunction> {
// Mint 10 tokens at `recipient_acc`
let subcommand = TokenProgramAgnosticSubcommand::Mint {
definition: make_public_account_input_from_str(&definition_account_id.to_string()),
holder: Some(make_public_account_input_from_str(&recipient_account_id.to_string())),
holder: Some(make_public_account_input_from_str(
&recipient_account_id.to_string(),
)),
holder_npk: None,
holder_ipk: None,
amount: 10,

View File

@ -312,7 +312,7 @@ impl Token<'_> {
let (instruction, program) = token_program_preparation_burn(amount);
// ToDo: Fix this by updating `nssa::public_transaction::Message::try_new` to get raw bytes
let instruction: [u32; 23] = instruction.try_into().unwrap();
let instruction: [u32; 23] = instruction.try_into().unwrap();
let Ok(nonces) = self.0.get_accounts_nonces(vec![holder_account_id]).await else {
return Err(ExecutionFailureKind::SequencerError);
@ -492,7 +492,7 @@ impl Token<'_> {
let (instruction, program) = token_program_preparation_mint(amount);
// ToDo: Fix this by updating `nssa::public_transaction::Message::try_new` to get raw bytes
let instruction: [u32; 23] = instruction.try_into().unwrap();
let instruction: [u32; 23] = instruction.try_into().unwrap();
let Ok(nonces) = self
.0