diff --git a/testing/examples/author_tests.rs b/testing/examples/author_tests.rs index fa1063859..7d21ba3b8 100644 --- a/testing/examples/author_tests.rs +++ b/testing/examples/author_tests.rs @@ -26,14 +26,7 @@ use substrate_api_client::{ XtStatus, }; -// Define an extrinsic signer type which sets the generic types of the `GenericExtrinsicSigner`. -// This way, the types don't have to be reassigned with every usage of this type and make -// the code better readable. type ExtrinsicSigner = GenericExtrinsicSigner; - -// To access the ExtrinsicAddress type of the ExtrinsicSigner, we need to access the trait `SignExtrinsic`. -// As this is very verbose, we define a simple type here and, at the same time, assign the -// AccountId type of the `SignExtrinsic` trait. type ExtrinsicAddressOf = >::ExtrinsicAddress; #[tokio::main] @@ -47,7 +40,7 @@ async fn main() { let bob: ExtrinsicAddressOf = AccountKeyring::Bob.to_account_id().into(); // Submit extrinisc. - let xt0 = api.balance_transfer(bob.clone().into(), 1000); + let xt0 = api.balance_transfer(bob.clone(), 1000); let _tx_hash = api.submit_extrinsic(xt0).unwrap(); // Submit and watch.