diff --git a/core/src/apps/solana/constents.py b/core/src/apps/solana/constents.py index 764015086..a8a681495 100644 --- a/core/src/apps/solana/constents.py +++ b/core/src/apps/solana/constents.py @@ -37,3 +37,6 @@ other Token program token type and can be useful when being called from other programs that interact with the Token Program's interface. """ + +COMPUTE_BUDGET_PROGRAM_ID = PublicKey("ComputeBudget111111111111111111111111111111") +"""Public key of the Compute Budget Program.""" diff --git a/core/src/apps/solana/sign_tx.py b/core/src/apps/solana/sign_tx.py index 8d27f1488..ade30e6a2 100644 --- a/core/src/apps/solana/sign_tx.py +++ b/core/src/apps/solana/sign_tx.py @@ -20,6 +20,7 @@ SPL_MEMO_PROGRAM_ID, SPL_TOKEN_PROGRAM_ID, SYS_PROGRAM_ID, + COMPUTE_BUDGET_PROGRAM_ID, ) if TYPE_CHECKING: @@ -31,6 +32,7 @@ SPL_TOKEN_PROGRAM_ID, SPL_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID, SPL_MEMO_PROGRAM_ID, + COMPUTE_BUDGET_PROGRAM_ID, ] @@ -99,6 +101,8 @@ async def sign_tx( from .spl.memo.memo_program import parse await parse(ctx, accounts, i.data) + # elif program_id == COMPUTE_BUDGET_PROGRAM_ID: + # pass # # elif program_id == STAKE_PROGRAM_ID: # # raise wire.ProcessError("Stake program not support for now") # # elif program_id == VOTE_PROGRAM_ID: