mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 07:41:02 +00:00
Update to set mortal_period in client
This commit is contained in:
@@ -20,8 +20,6 @@ use substrate_subxt::{
|
||||
ClientBuilder,
|
||||
KusamaRuntime,
|
||||
PairSigner,
|
||||
SignedOptions,
|
||||
DEFAULT_ERA_PERIOD
|
||||
};
|
||||
|
||||
#[async_std::main]
|
||||
@@ -34,7 +32,6 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
let client = ClientBuilder::<KusamaRuntime>::new().build().await?;
|
||||
let hash = client.transfer(
|
||||
&signer,
|
||||
SignedOptions { era_period: Some(DEFAULT_ERA_PERIOD) },
|
||||
&dest,
|
||||
10_000
|
||||
).await?;
|
||||
|
||||
Reference in New Issue
Block a user