Skip to content

Commit ffe0d62

Browse files
committed
Update mintlayer-core-primitives repo revision. Enable disabled CI workflows. Run cargo-fmt. Update ledger_device_sdk version.
1 parent 985e76c commit ffe0d62

6 files changed

Lines changed: 31 additions & 14 deletions

File tree

.github/workflows/build_and_functional_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ name: Build and run functional tests using ragger through reusable workflow
99
# While the test part of this workflow is optional, having functional testing on your application is mandatory and this workflow and
1010
# tooling environment is meant to be easy to use and adapt after forking your application
1111

12+
permissions:
13+
actions: write
14+
contents: write
15+
pull-requests: write
16+
1217
on:
1318
workflow_dispatch:
1419
inputs:

.github/workflows/guidelines_enforcer.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ name: Ensure compliance with Ledger guidelines
88
# More information on the guidelines can be found in the repository:
99
# LedgerHQ/ledger-app-workflows/
1010

11+
permissions:
12+
actions: write
13+
contents: read
14+
1115
on:
1216
workflow_dispatch:
1317
push:

Cargo.lock

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

Cargo.toml

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

66
[dependencies]
77
messages = { path = "./messages" }
8-
ledger_device_sdk = "1.32.0"
8+
ledger_device_sdk = "1.34.0"
99
ledger_secure_sdk_sys = "1.14.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"] }
1313

14-
mintlayer-core-primitives = { git = "https://github.com/mintlayer/mintlayer-core-primitives", rev = "13b10dbc88efdf3b5aa31ece8e34278bc69a5a9b", package = "mintlayer-core-primitives" }
14+
[dependencies.mintlayer-core-primitives]
15+
git = "https://github.com/mintlayer/mintlayer-core-primitives"
16+
# The commit "Merge pull request #4 from mintlayer/fix_typo".
17+
rev = "8644bfe06d932d687075939d2d175183ba1c369d"
18+
package = "mintlayer-core-primitives"
1519

1620
[build-dependencies]
1721
image = "0.25.8"

messages/Cargo.toml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,14 @@ parity-scale-codec = { git = "https://github.com/paritytech/parity-scale-codec.g
1414
"derive",
1515
"chain-error",
1616
] }
17-
mintlayer-core-primitives = { git = "https://github.com/mintlayer/mintlayer-core-primitives", rev = "13b10dbc88efdf3b5aa31ece8e34278bc69a5a9b", package = "mintlayer-core-primitives" }
17+
1818
num_enum = { version = "0.7.5", default-features = false }
1919
derive_more = { version = "2.1.1", default-features = false, features = [
2020
"display",
2121
] }
22+
23+
[dependencies.mintlayer-core-primitives]
24+
git = "https://github.com/mintlayer/mintlayer-core-primitives"
25+
# The commit "Merge pull request #4 from mintlayer/fix_typo".
26+
rev = "8644bfe06d932d687075939d2d175183ba1c369d"
27+
package = "mintlayer-core-primitives"

src/main.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ impl TryFrom<RawInstruction> for Command {
164164
let p1: SignP1 = raw.p1.try_into()?;
165165
Ok(Command::SignMessage { p1, data: raw.data })
166166
}
167-
Ins::PING => {
168-
Ok(Command::Ping)
169-
}
167+
Ins::PING => Ok(Command::Ping),
170168
_ => Err(StatusWord::InsNotSupported),
171169
}
172170
}
@@ -305,6 +303,6 @@ fn handle_command(comm: &mut Comm, cmd: &Command, ctx: &mut Context) -> Result<(
305303
}
306304
SignP1::Next => handle_sign_message(comm, false, &mut ctx.data),
307305
},
308-
Command::Ping => Ok(())
306+
Command::Ping => Ok(()),
309307
}
310308
}

0 commit comments

Comments
 (0)