Skip to content

Commit

Permalink
Cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jsdw committed Nov 22, 2023
1 parent f502aca commit 32733f3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion subxt/src/blocks/extrinsic_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ impl<'a, T: Config> ExtrinsicSignedExtensions<'a, T> {
// No error, but no match either; next!
Ok(None) => continue,
// Error? return it
Err(e) => return Err(e),
Err(e) => return Err(e.into()),
}
}
Ok(None)
Expand Down
10 changes: 4 additions & 6 deletions testing/integration-tests/src/full_client/blocks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
use crate::{test_context, utils::node_runtime};
use codec::{Compact, Encode};
use futures::StreamExt;
use subxt::config::signed_extensions::{
ChargeAssetTxPayment, CheckMortality, CheckNonce,
};
use subxt::config::signed_extensions::{ChargeAssetTxPayment, CheckMortality, CheckNonce};
use subxt::config::DefaultExtrinsicParamsBuilder;
use subxt::config::SubstrateConfig;
use subxt::utils::Era;
Expand Down Expand Up @@ -279,9 +277,9 @@ async fn decode_signed_extensions_from_blocks() {
let transaction1 = submit_transfer_extrinsic_and_get_it_back!(1234);
let extensions1 = transaction1.signed_extensions().unwrap();

let nonce1 = extensions1.nonce().unwrap();
let nonce1 = extensions1.nonce().unwrap().unwrap();
let nonce1_static = extensions1.find::<CheckNonce>().unwrap().unwrap();
let tip1 = extensions1.tip().unwrap();
let tip1 = extensions1.tip().unwrap().unwrap();
let tip1_static: u128 = extensions1
.find::<ChargeAssetTxPayment<SubstrateConfig>>()
.unwrap()
Expand Down Expand Up @@ -316,7 +314,7 @@ async fn decode_signed_extensions_from_blocks() {
"CheckMortality",
"CheckNonce",
"CheckWeight",
"SkipCheckIfFeeless",
"ChargeAssetTxPayment",
];

assert_eq!(extensions1.iter().count(), expected_signed_extensions.len());
Expand Down

0 comments on commit 32733f3

Please sign in to comment.