Remove unneeded Config bounds and BlockNumber associated type (#804)

* remove unneeded Config bounds and BlockNumber associated type

* clippy and fmt
This commit is contained in:
James Wilson
2023-01-27 14:01:47 +00:00
committed by GitHub
parent 171bd62bb2
commit ce0a82e322
27 changed files with 72 additions and 112 deletions
@@ -194,8 +194,7 @@ async fn tx_instantiate_with_code() {
assert!(
result.is_ok(),
"Error calling instantiate_with_code and receiving CodeStored and Instantiated Events: {:?}",
result
"Error calling instantiate_with_code and receiving CodeStored and Instantiated Events: {result:?}"
);
}
@@ -208,8 +207,7 @@ async fn tx_instantiate() {
assert!(
instantiated.is_ok(),
"Error instantiating contract: {:?}",
instantiated
"Error instantiating contract: {instantiated:?}"
);
}
@@ -244,9 +242,9 @@ async fn tx_call() {
.iter()
.map(|key| hex::encode(&key.0))
.collect::<Vec<_>>();
println!("keys post: {:?}", keys);
println!("keys post: {keys:?}");
let executed = cxt.call(contract, vec![]).await;
assert!(executed.is_ok(), "Error calling contract: {:?}", executed);
assert!(executed.is_ok(), "Error calling contract: {executed:?}");
}
@@ -27,7 +27,7 @@ use subxt::error::{
/// Helper function to generate a crypto pair from seed
fn get_from_seed(seed: &str) -> sr25519::Pair {
sr25519::Pair::from_string(&format!("//{}", seed), None)
sr25519::Pair::from_string(&format!("//{seed}"), None)
.expect("static values are valid; qed")
}