diff --git a/.github/workflows/build_and_functional_tests.yml b/.github/workflows/build_and_functional_tests.yml index 014f22f..3e87c18 100644 --- a/.github/workflows/build_and_functional_tests.yml +++ b/.github/workflows/build_and_functional_tests.yml @@ -9,6 +9,11 @@ name: Build and run functional tests using ragger through reusable workflow # While the test part of this workflow is optional, having functional testing on your application is mandatory and this workflow and # tooling environment is meant to be easy to use and adapt after forking your application +permissions: + actions: write + contents: write + pull-requests: write + on: workflow_dispatch: inputs: diff --git a/.github/workflows/guidelines_enforcer.yml b/.github/workflows/guidelines_enforcer.yml index fdaf9f2..b217d84 100644 --- a/.github/workflows/guidelines_enforcer.yml +++ b/.github/workflows/guidelines_enforcer.yml @@ -8,6 +8,10 @@ name: Ensure compliance with Ledger guidelines # More information on the guidelines can be found in the repository: # LedgerHQ/ledger-app-workflows/ +permissions: + actions: write + contents: read + on: workflow_dispatch: push: diff --git a/Cargo.lock b/Cargo.lock index 2271e75..f6331dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -549,9 +549,9 @@ dependencies = [ [[package]] name = "include_gif" -version = "1.2.5" +version = "1.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2c5148da8ab53eb3a387c221059d5a1ec3d4788d6088d4a8f127d6768dce74f4" +checksum = "4046578028f0249b76fb88acb6a0eac1f635bf9e2630ba5d0562831597ffc323" dependencies = [ "flate2", "image", @@ -612,9 +612,9 @@ checksum = "03087c2bad5e1034e8cace5926dec053fb3790248370865f5117a7d0213354c8" [[package]] name = "ledger_device_sdk" -version = "1.32.0" +version = "1.34.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eb8c98b0b1aae2bb69c6bb9438d109afd8f85c58005df7c8a02c47be5146eb19" +checksum = "8adde0c75d115974c33db5e8e50dbf809d874d64ea970570cd6cc523ce009d6b" dependencies = [ "const-zero", "include_gif", @@ -628,9 +628,9 @@ dependencies = [ [[package]] name = "ledger_secure_sdk_sys" -version = "1.14.1" +version = "1.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "59f06614c0a9f19bdd8eaad05082728f52ba06d0ddd88b6419493609db6064ba" +checksum = "f18ccb022d22741651f4a13bb417e2e5f4f2d68b832409b80bdc3726e76b1bd9" dependencies = [ "bindgen", "cc", @@ -745,7 +745,7 @@ dependencies = [ [[package]] name = "mintlayer-core-primitives" version = "1.0.0" -source = "git+https://github.com/mintlayer/mintlayer-core-primitives?rev=13b10dbc88efdf3b5aa31ece8e34278bc69a5a9b#13b10dbc88efdf3b5aa31ece8e34278bc69a5a9b" +source = "git+https://github.com/mintlayer/mintlayer-core-primitives?rev=8644bfe06d932d687075939d2d175183ba1c369d#8644bfe06d932d687075939d2d175183ba1c369d" dependencies = [ "derive_more", "fixed-hash", diff --git a/Cargo.toml b/Cargo.toml index a2d3900..e703c9d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,13 +5,17 @@ edition = "2021" [dependencies] messages = { path = "./messages" } -ledger_device_sdk = "1.32.0" +ledger_device_sdk = "1.34.0" ledger_secure_sdk_sys = "1.14.1" hex = { version = "0.4.3", default-features = false, features = ["alloc"] } bech32 = { version = "0.11", default-features = false, features = ["alloc"] } chrono = { version = "0.4", default-features = false, features = ["alloc"] } -mintlayer-core-primitives = { git = "https://github.com/mintlayer/mintlayer-core-primitives", rev = "13b10dbc88efdf3b5aa31ece8e34278bc69a5a9b", package = "mintlayer-core-primitives" } +[dependencies.mintlayer-core-primitives] +git = "https://github.com/mintlayer/mintlayer-core-primitives" +# The commit "Merge pull request #4 from mintlayer/fix_typo". +rev = "8644bfe06d932d687075939d2d175183ba1c369d" +package = "mintlayer-core-primitives" [build-dependencies] image = "0.25.8" diff --git a/messages/Cargo.toml b/messages/Cargo.toml index 130c133..aed18f0 100644 --- a/messages/Cargo.toml +++ b/messages/Cargo.toml @@ -14,8 +14,14 @@ parity-scale-codec = { git = "https://github.com/paritytech/parity-scale-codec.g "derive", "chain-error", ] } -mintlayer-core-primitives = { git = "https://github.com/mintlayer/mintlayer-core-primitives", rev = "13b10dbc88efdf3b5aa31ece8e34278bc69a5a9b", package = "mintlayer-core-primitives" } + num_enum = { version = "0.7.5", default-features = false } derive_more = { version = "2.1.1", default-features = false, features = [ "display", ] } + +[dependencies.mintlayer-core-primitives] +git = "https://github.com/mintlayer/mintlayer-core-primitives" +# The commit "Merge pull request #4 from mintlayer/fix_typo". +rev = "8644bfe06d932d687075939d2d175183ba1c369d" +package = "mintlayer-core-primitives" diff --git a/src/main.rs b/src/main.rs index 18ce190..9583cf4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -164,9 +164,7 @@ impl TryFrom for Command { let p1: SignP1 = raw.p1.try_into()?; Ok(Command::SignMessage { p1, data: raw.data }) } - Ins::PING => { - Ok(Command::Ping) - } + Ins::PING => Ok(Command::Ping), _ => Err(StatusWord::InsNotSupported), } } @@ -305,6 +303,6 @@ fn handle_command(comm: &mut Comm, cmd: &Command, ctx: &mut Context) -> Result<( } SignP1::Next => handle_sign_message(comm, false, &mut ctx.data), }, - Command::Ping => Ok(()) + Command::Ping => Ok(()), } }