Skip to content

Commit

Permalink
PR review.
Browse files Browse the repository at this point in the history
  • Loading branch information
agrojean-ledger committed Jun 10, 2024
1 parent e112044 commit f50db61
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,14 @@ APP_SOURCE_FILES += ${BOLOS_SDK}/lib_standard_app/crypto_helpers.c

DEFINES += UNUSED\(x\)=\(void\)x

WITH_U2F=0
WITH_U2F?=0
ifneq ($(WITH_U2F),0)
DEFINES += HAVE_U2F HAVE_IO_U2F
DEFINES += U2F_PROXY_MAGIC=\"~SOL\"
SDK_SOURCE_PATH += lib_u2f
endif

WITH_LIBSOL=1
WITH_LIBSOL?=1
ifneq ($(WITH_LIBSOL),0)
SOURCE_FILES += $(filter-out %_test.c,$(wildcard libsol/*.c))
CFLAGS += -Ilibsol/include
Expand Down
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ void nv_app_state_init() {
if (N_storage.initialized != 0x01) {
internalStorage_t storage;
storage.settings.allow_blind_sign = BlindSignDisabled;
#if defined(TARGET_NANOX) || defined(TARGET_NANOS2) || defined(TARGET_STAX) || defined(TARGET_FLEX)
#if !defined(TARGET_NANOS)
storage.settings.pubkey_display = PubkeyDisplayLong;
#else
storage.settings.pubkey_display = PubkeyDisplayShort;
Expand Down
4 changes: 2 additions & 2 deletions src/ui/sign_message_nbgl.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ void start_sign_tx_ui(size_t num_summary_steps) {
&C_icon_solana_64x64,
"Review transaction",
NULL,
"Sign transaction on\nSolana network?",
"Sign transaction on Solana network?",
review_choice);
}

Expand Down Expand Up @@ -143,7 +143,7 @@ void start_sign_offchain_message_ui(bool is_ascii, size_t num_summary_steps) {
&C_icon_solana_64x64,
"Review off-chain\nmessage",
NULL,
"Sign off-chain\nmessage on Solana\nnetwork?",
"Sign off-chain message on Solana network?",
review_choice);
}
#endif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions tests/python/test_solana.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
from .apps.solana import SolanaClient, ErrorType
from .apps.solana_cmd_builder import SystemInstructionTransfer, Message, verify_signature, OffchainMessage
from .apps.solana_utils import FOREIGN_PUBLIC_KEY, FOREIGN_PUBLIC_KEY_2, AMOUNT, AMOUNT_2, SOL_PACKED_DERIVATION_PATH, SOL_PACKED_DERIVATION_PATH_2, ROOT_SCREENSHOT_PATH
from .apps.solana_utils import enable_blind_signing, enable_short_public_key, enable_expert_mode
from .apps.solana_utils import enable_blind_signing, enable_expert_mode


class TestGetPublicKey:

def test_solana_get_public_key_ok(self, backend, scenario_navigator, navigator, test_name):
def test_solana_get_public_key_ok(self, backend, scenario_navigator):
sol = SolanaClient(backend)
from_public_key = sol.get_public_key(SOL_PACKED_DERIVATION_PATH)

Expand All @@ -19,7 +19,7 @@ def test_solana_get_public_key_ok(self, backend, scenario_navigator, navigator,
assert sol.get_async_response().data == from_public_key


def test_solana_get_public_key_refused(self, backend, scenario_navigator, test_name):
def test_solana_get_public_key_refused(self, backend, scenario_navigator):
sol = SolanaClient(backend)
with sol.send_public_key_with_confirm(SOL_PACKED_DERIVATION_PATH):
backend.raise_policy = RaisePolicy.RAISE_NOTHING
Expand Down

0 comments on commit f50db61

Please sign in to comment.