Skip to content

Commit 54deb76

Browse files
committed
fix nanox tests
1 parent 39666c7 commit 54deb76

715 files changed

Lines changed: 635 additions & 570 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,7 @@ __pycache__/
2222
# Related to the Ledger VSCode extension
2323
# Virtual env for sideload (macOS and Windows)
2424
ledger/
25+
venv/
26+
.vscode/
2527
# Build directory
2628
build/

Cargo.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ edition = "2021"
55

66
[dependencies]
77
messages = { path = "./messages" }
8-
ledger_device_sdk = "1.34.0"
9-
ledger_secure_sdk_sys = "1.15.0"
8+
ledger_device_sdk = "1.35.1"
9+
ledger_secure_sdk_sys = "1.16.1"
1010
hex = { version = "0.4.3", default-features = false, features = ["alloc"] }
1111
bech32 = { version = "0.11", default-features = false, features = ["alloc"] }
1212
chrono = { version = "0.4", default-features = false, features = ["alloc"] }

build.rs

Lines changed: 0 additions & 49 deletions
This file was deleted.

messages/src/lib.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -402,16 +402,24 @@ pub enum StatusWord {
402402
// Standard Ledger APDU Codes
403403
#[display("Success")]
404404
Ok = 0x9000,
405+
#[display("Nothing received")]
406+
NothingReceived = 0x6982,
405407
#[display("User cancelled")]
406408
Deny = 0x6985,
407409
#[display("CLA not supported")]
408410
ClaNotSupported = 0x6E00,
409-
#[display("Wrong P1/P2 parameters")]
410-
WrongP1P2 = 0x6B00,
411411
#[display("Instruction not supported")]
412-
InsNotSupported = 0x6D00,
412+
InsNotSupported = 0x6E01,
413+
#[display("Wrong P1/P2 parameters")]
414+
WrongP1P2 = 0x6E02,
413415
#[display("Wrong APDU length")]
414-
WrongApduLength = 0x6700,
416+
WrongApduLength = 0x6E03,
417+
#[display("Unknown")]
418+
Unknown = 0x6D00,
419+
#[display("Panic")]
420+
Panic = 0xE000,
421+
#[display("Device locked")]
422+
DeviceLocked = 0x5515,
415423

416424
// App Specific Errors (0xB...)
417425
#[display("Transaction display failed")]
@@ -454,6 +462,8 @@ pub enum StatusWord {
454462
MaxBufferLenExceeded = 0xB012,
455463
#[display("Different input commitment hash")]
456464
DifferentInputCommitmentHash = 0xB013,
465+
#[display("Invalid Timestamp")]
466+
InvalidTimestamp = 0xB014,
457467

458468
// Ecc Errors
459469
#[display("ECC Carry")]

0 commit comments

Comments
 (0)