Skip to content

Commit

Permalink
chore: fix duplicated dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrxlz committed Oct 1, 2024
1 parent b37a43a commit c3103d0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pbjson = { version = "0.5", git = "https://github.com/klever-io/pbjson" }
pbjson-types = { version = "0.5", git = "https://github.com/klever-io/pbjson" }
pbjson-build = { version = "0.5", git = "https://github.com/klever-io/pbjson" }

uniffi = { version = "0.28.1"}
uniffi = { version = "0.28.1" }

reqwest = { version = "0.12", default-features = false, feature = ["rustls-tls", "blocking", "json"] }
wasm-bindgen = "0.2"
Expand All @@ -58,4 +58,5 @@ kos-types = { version = "0.1.0", path = "./packages/kos-types", default-features
kos-crypto = { version = "0.1.0", path = "./packages/kos-crypto", default-features = false }
kos-sdk = { version = "0.1.0", path = "./packages/kos-sdk", default-features = false }
kos-utils = { version = "0.1.0", path = "./packages/kos-utils", default-features = false }
kos-proto = { version = "0.1.0", path = "./packages/kos-proto", default-features = false }
kos-proto = { version = "0.1.0", path = "./packages/kos-proto", default-features = false }

5 changes: 4 additions & 1 deletion packages/kos-sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ hex = { workspace = true }
rand = { workspace = true }
coins-bip39 = { workspace = true }
pem = "3"
web3 = { version = "0.19", default-features = false, features = ["http-tls", "wasm"] }
web3 = { version = "0.19.0", default-features = false, features = ["http-tls", "wasm"] }
bitcoin = { version = "0.30" }
secp256k1 = { workspace = true, features = ["serde", "bitcoin_hashes"] }
rlp = "0.5"
Expand All @@ -57,3 +57,6 @@ dotenvy = "0.15.7"

[build-dependencies]
dotenv-build = "0.1"

[patch.crates-io]
derive_more = "=1.0.0"
3 changes: 3 additions & 0 deletions packages/kos-sdk/src/wallet.rs
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,9 @@ impl Wallet {

#[wasm_bindgen(js_name = "getKeypair")]
pub fn get_keypair(&self) -> Option<KeyPair> {
if self.is_locked {
return None;
}
self.keypair.clone()
}

Expand Down

0 comments on commit c3103d0

Please sign in to comment.