Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
gRoussac committed Sep 17, 2024
1 parent 7641e6b commit 10cb7ab
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 34 deletions.
27 changes: 3 additions & 24 deletions src/sdk/contract/query_contract_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,7 @@ mod tests {

// Act
let result = sdk
.query_contract_key(
Some(entity),
None,
path,
None,
verbosity,
Some(rpc_address),
)
.query_contract_key(Some(entity), None, path, None, verbosity, Some(rpc_address))
.await;

// Assert
Expand All @@ -353,14 +346,7 @@ mod tests {

// Act
let result = sdk
.query_contract_key(
Some(entity),
None,
path,
None,
verbosity,
Some(rpc_address),
)
.query_contract_key(Some(entity), None, path, None, verbosity, Some(rpc_address))
.await;

// Assert
Expand All @@ -383,14 +369,7 @@ mod tests {

// Act
let result = sdk
.query_contract_key(
Some(entity),
None,
path,
None,
verbosity,
Some(rpc_address),
)
.query_contract_key(Some(entity), None, path, None, verbosity, Some(rpc_address))
.await;

// Assert
Expand Down
6 changes: 1 addition & 5 deletions src/sdk/rpcs/get_era_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,7 @@ mod tests {

// Act
let result = sdk
.get_era_info(
Some(block_identifier),
verbosity,
Some(rpc_address.clone()),
)
.get_era_info(Some(block_identifier), verbosity, Some(rpc_address.clone()))
.await;

// Assert
Expand Down
6 changes: 1 addition & 5 deletions src/sdk/rpcs/query_global_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,7 @@ impl SDK {
.map_err(SdkError::from)
} else {
let state_root_hash = self
.get_state_root_hash(
None,
None,
Some(self.get_rpc_address(rpc_address.clone())),
)
.get_state_root_hash(None, None, Some(self.get_rpc_address(rpc_address.clone())))
.await;

let state_root_hash_as_string: String = match state_root_hash {
Expand Down

0 comments on commit 10cb7ab

Please sign in to comment.