Skip to content

Commit 6ab3a14

Browse files
committed
ledger cleanup
1 parent 23e2503 commit 6ab3a14

File tree

6 files changed

+53
-150
lines changed

6 files changed

+53
-150
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ homepage = "https://mintlayer.org"
55
repository = "https://github.com/mintlayer/mintlayer-core"
66
readme = "README.md"
77
license = "MIT"
8-
version = "1.0.2"
8+
version = "1.1.0"
99
authors = [
1010
"Samer Afach <[email protected]>",
1111
"Ben Marsh <[email protected]>",

wallet/Cargo.toml

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -53,29 +53,25 @@ zeroize.workspace = true
5353
[dev-dependencies]
5454
chainstate-test-framework = { path = "../chainstate/test-framework" }
5555
test-utils = { path = "../test-utils" }
56-
tokio = { workspace = true, default-features = false, features = [
57-
"io-util",
58-
"macros",
59-
"net",
60-
"rt",
61-
"sync",
62-
] }
63-
strum = { workspace = true }
64-
reqwest = { workspace = true, features = ["json"] }
65-
tracing = { workspace = true }
66-
anyhow = { workspace = true }
67-
clap = { workspace = true }
68-
bollard = "0.14"
69-
bytes = "1.10"
70-
tar = "0.4"
71-
7256

57+
anyhow.workspace = true
58+
clap.workspace = true
7359
ctor.workspace = true
7460
lazy_static.workspace = true
61+
reqwest = { workspace = true, features = ["json"] }
7562
rstest.workspace = true
7663
serde_json.workspace = true
7764
serial_test.workspace = true
65+
strum.workspace = true
7866
tempfile.workspace = true
67+
tokio = { workspace = true, default-features = false, features = [
68+
"io-util",
69+
"macros",
70+
"net",
71+
"rt",
72+
"sync",
73+
] }
74+
tracing.workspace = true
7975

8076
[features]
8177
trezor = ["dep:trezor-client", "wallet-types/trezor"]

wallet/src/signer/ledger_signer/ledger_messages.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ fn ok_response(resp: Vec<u8>) -> SignerResult<Vec<u8>> {
124124
}
125125

126126
/// send a message to the Ledger and check the respons status code is ok
127-
async fn exchange_message<D: Exchange>(
128-
ledger: &mut D,
127+
async fn exchange_message<L: Exchange>(
128+
ledger: &mut L,
129129
msg_buf: &[u8],
130130
) -> Result<Vec<u8>, SignerError> {
131131
let resp = ledger
@@ -210,8 +210,8 @@ pub async fn check_current_app<L: Exchange>(ledger: &mut L) -> SignerResult<()>
210210
Ok(())
211211
}
212212

213-
pub async fn get_extended_public_key<D: Exchange>(
214-
ledger: &mut D,
213+
pub async fn get_extended_public_key<L: Exchange>(
214+
ledger: &mut L,
215215
chain_type: u8,
216216
derivation_path: DerivationPath,
217217
) -> SignerResult<ExtendedPublicKey> {

0 commit comments

Comments
 (0)