Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/src/apps/solana/constents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."""
4 changes: 4 additions & 0 deletions core/src/apps/solana/sign_tx.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
SPL_MEMO_PROGRAM_ID,
SPL_TOKEN_PROGRAM_ID,
SYS_PROGRAM_ID,
COMPUTE_BUDGET_PROGRAM_ID,
)

if TYPE_CHECKING:
Expand All @@ -31,6 +32,7 @@
SPL_TOKEN_PROGRAM_ID,
SPL_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID,
SPL_MEMO_PROGRAM_ID,
COMPUTE_BUDGET_PROGRAM_ID,
]


Expand Down Expand Up @@ -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:
Expand Down
Loading