Skip to content

Commit

Permalink
fix: Minor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
vrockz747 committed Jan 3, 2025
1 parent 6d43c75 commit 51adadc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/solana_app/solana_txn_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ int solana_byte_array_to_unsigned_txn(uint8_t *byte_array,
// Set System instruction address for Token Program
hex_string_to_byte_array(SOLANA_TOKEN_PROGRAM_ADDRESS,
SOLANA_ACCOUNT_ADDRESS_LENGTH * 2,
system_program_id[1]);
system_program_id[SOLANA_TOKEN_PROGRAM_ID_INDEX]);

if (memcmp(utxn->account_addresses + utxn->instruction.program_id_index *
SOLANA_ACCOUNT_ADDRESS_LENGTH,
Expand Down Expand Up @@ -264,7 +264,7 @@ int solana_validate_unsigned_txn(const solana_unsigned_txn *utxn) {
// Set System instruction address for Token Program
hex_string_to_byte_array(SOLANA_TOKEN_PROGRAM_ADDRESS,
SOLANA_ACCOUNT_ADDRESS_LENGTH * 2,
system_program_id[1]);
system_program_id[SOLANA_TOKEN_PROGRAM_ID_INDEX]);

if (memcmp(utxn->account_addresses + utxn->instruction.program_id_index *
SOLANA_ACCOUNT_ADDRESS_LENGTH,
Expand All @@ -283,7 +283,7 @@ int solana_validate_unsigned_txn(const solana_unsigned_txn *utxn) {
} else if (memcmp(
utxn->account_addresses + utxn->instruction.program_id_index *
SOLANA_ACCOUNT_ADDRESS_LENGTH,
system_program_id,
system_program_id[SOLANA_TOKEN_PROGRAM_ID_INDEX],
SOLANA_ACCOUNT_ADDRESS_LENGTH) == 0) {
uint8_t instruction_enum = *(utxn->instruction.opaque_data);

Expand Down

0 comments on commit 51adadc

Please sign in to comment.