mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-22 23:48:12 +00:00
fix(solana): accept compute budget instructions at any position
This commit is contained in:
parent
8b485de173
commit
9b84ecf833
@ -133,7 +133,7 @@ def calculate_fee(transaction: Transaction) -> int:
|
|||||||
unit_limit = SOLANA_COMPUTE_UNIT_LIMIT
|
unit_limit = SOLANA_COMPUTE_UNIT_LIMIT
|
||||||
is_unit_limit_set = False
|
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.program_id == COMPUTE_BUDGET_PROGRAM_ID:
|
||||||
if (
|
if (
|
||||||
instruction.instruction_id
|
instruction.instruction_id
|
||||||
|
Loading…
Reference in New Issue
Block a user