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
5 changes: 5 additions & 0 deletions .github/workflows/build_and_functional_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/guidelines_enforcer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
14 changes: 7 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 7 additions & 1 deletion messages/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,7 @@ impl TryFrom<RawInstruction> 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),
}
}
Expand Down Expand Up @@ -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(()),
}
}
Loading