1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-22 15:38:11 +00:00

fix(solana): accept compute budget instructions at any position

This commit is contained in:
gabrielkerekes 2024-03-21 09:20:53 +01:00 committed by matejcik
parent 8b485de173
commit 9b84ecf833

View File

@ -133,7 +133,7 @@ def calculate_fee(transaction: Transaction) -> int:
unit_limit = SOLANA_COMPUTE_UNIT_LIMIT
is_unit_limit_set = False
for instruction in transaction.instructions[:3]:
for instruction in transaction.instructions:
if instruction.program_id == COMPUTE_BUDGET_PROGRAM_ID:
if (
instruction.instruction_id