Skip to content

Commit 099b4b7

Browse files
committed
style: formatting
1 parent 8356093 commit 099b4b7

File tree

7 files changed

+13
-15
lines changed

7 files changed

+13
-15
lines changed

packages/wasm-sdk/src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ pub mod wallet;
1414
// Re-export commonly used items
1515
pub use dpns::*;
1616
pub use error::{WasmSdkError, WasmSdkErrorKind};
17-
pub use queries::{
18-
group::*, identity as query_identity,
19-
};
17+
pub use queries::{group::*, identity as query_identity};
2018
pub use sdk::{WasmSdk, WasmSdkBuilder};
2119
pub use state_transitions::identity as state_transition_identity;
2220
pub use wallet::*;

packages/wasm-sdk/src/queries/identity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ impl WasmSdk {
228228
identity_id: id.to_vec(),
229229
prove: false,
230230
limit: Some(limit.unwrap_or(100)), // Always provide a limit when prove=false
231-
offset: None, // Offsets not supported when prove=false
231+
offset: None, // Offsets not supported when prove=false
232232
request_type: Some(KeyRequestType {
233233
request: Some(Request::SpecificKeys(SpecificKeys { key_ids })),
234234
}),
@@ -357,7 +357,7 @@ impl WasmSdk {
357357
identity_id: id.to_vec(),
358358
prove: false,
359359
limit: Some(limit.unwrap_or(100)), // Always provide a limit when prove=false
360-
offset: None, // Offsets not supported when prove=false
360+
offset: None, // Offsets not supported when prove=false
361361
request_type: Some(KeyRequestType {
362362
request: Some(Request::SearchKey(SearchKey { purpose_map })),
363363
}),

packages/wasm-sdk/src/queries/system.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -693,8 +693,8 @@ impl WasmSdk {
693693
.await?;
694694

695695
let data = total_credits_result.map(|credits| TotalCreditsResponse {
696-
total_credits_in_platform: credits.0.to_string(),
697-
});
696+
total_credits_in_platform: credits.0.to_string(),
697+
});
698698

699699
let response = ProofMetadataResponse {
700700
data,

packages/wasm-sdk/src/queries/token.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -897,8 +897,8 @@ impl WasmSdk {
897897
.await?;
898898

899899
let data = supply_result.map(|supply| TokenTotalSupplyResponse {
900-
total_supply: supply.token_supply.to_string(),
901-
});
900+
total_supply: supply.token_supply.to_string(),
901+
});
902902

903903
let response = ProofMetadataResponse {
904904
data,

packages/wasm-sdk/src/sdk.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,10 +648,7 @@ impl WasmSdkBuilder {
648648
}
649649

650650
pub fn build(self) -> Result<WasmSdk, WasmSdkError> {
651-
self.0
652-
.build()
653-
.map(WasmSdk)
654-
.map_err(WasmSdkError::from)
651+
self.0.build().map(WasmSdk).map_err(WasmSdkError::from)
655652
}
656653

657654
#[wasm_bindgen(js_name = "withContextProvider")]

packages/wasm-sdk/src/state_transitions/identity/mod.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,11 @@ impl WasmSdk {
108108
let mut identity_public_keys = std::collections::BTreeMap::new();
109109
let mut signer = SimpleSigner::default();
110110

111-
for (key_id, key_data) in keys_array.iter().enumerate().map(|(key, value)| (key as u32, value)) {
111+
for (key_id, key_data) in keys_array
112+
.iter()
113+
.enumerate()
114+
.map(|(key, value)| (key as u32, value))
115+
{
112116
let key_type_str = key_data["keyType"]
113117
.as_str()
114118
.ok_or_else(|| WasmSdkError::invalid_argument("keyType is required"))?;

packages/wasm-sdk/src/wallet/extended_derivation.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ impl WasmSdk {
131131
address_index: u32,
132132
network: &str,
133133
) -> Result<JsValue, WasmSdkError> {
134-
135134
use bs58;
136135

137136
// Convert base58 identity IDs to hex format if needed

0 commit comments

Comments
 (0)