Skip to content
Snippets Groups Projects
Commit bdffe9f8 authored by Hugo Trentesaux's avatar Hugo Trentesaux
Browse files

update subxt dependency

parent 671f1496
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
...@@ -14,15 +14,15 @@ version = "0.2.15" ...@@ -14,15 +14,15 @@ version = "0.2.15"
[dependencies] [dependencies]
# subxt is main dependency # subxt is main dependency
subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.35.3-duniter-substrate-v1.11.0', default-features = false, features = [ subxt = { git = 'https://github.com/duniter/subxt', branch = 'subxt-v0.37.0-duniter-substrate-v1.14.0', default-features = false, features = [
"substrate-compat", "substrate-compat",
"native", "native",
"jsonrpsee", "jsonrpsee",
] } ] }
# substrate primitives dependencies # substrate primitives dependencies
sp-core = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.11.0" } sp-core = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.14.0" }
sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.11.0" } sp-runtime = { git = "https://github.com/duniter/duniter-polkadot-sdk.git", branch = "duniter-substrate-v1.14.0" }
# crates.io dependencies # crates.io dependencies
anyhow = "^1.0" anyhow = "^1.0"
......
...@@ -87,7 +87,7 @@ pub async fn get_account_info( ...@@ -87,7 +87,7 @@ pub async fn get_account_info(
pub async fn unlink_account(data: &Data) -> Result<(), subxt::Error> { pub async fn unlink_account(data: &Data) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::account::events::AccountUnlinked, runtime::account::events::AccountUnlinked,
Payload<runtime::account::calls::types::UnlinkIdentity>, StaticPayload<runtime::account::calls::types::UnlinkIdentity>,
>(data, &runtime::tx().account().unlink_identity()) >(data, &runtime::tx().account().unlink_identity())
.await .await
} }
...@@ -4,7 +4,7 @@ use crate::*; ...@@ -4,7 +4,7 @@ use crate::*;
pub async fn certify(data: &Data, target: IdtyId) -> Result<(), subxt::Error> { pub async fn certify(data: &Data, target: IdtyId) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::certification::events::CertAdded, runtime::certification::events::CertAdded,
Payload<runtime::certification::calls::types::AddCert>, StaticPayload<runtime::certification::calls::types::AddCert>,
>(data, &runtime::tx().certification().add_cert(target)) >(data, &runtime::tx().certification().add_cert(target))
.await .await
} }
...@@ -13,7 +13,7 @@ pub async fn certify(data: &Data, target: IdtyId) -> Result<(), subxt::Error> { ...@@ -13,7 +13,7 @@ pub async fn certify(data: &Data, target: IdtyId) -> Result<(), subxt::Error> {
pub async fn renew(data: &Data, target: IdtyId) -> Result<(), subxt::Error> { pub async fn renew(data: &Data, target: IdtyId) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::certification::events::CertRenewed, runtime::certification::events::CertRenewed,
Payload<runtime::certification::calls::types::RenewCert>, StaticPayload<runtime::certification::calls::types::RenewCert>,
>(data, &runtime::tx().certification().renew_cert(target)) >(data, &runtime::tx().certification().renew_cert(target))
.await .await
} }
...@@ -125,7 +125,7 @@ pub async fn technical_committee_vote( ...@@ -125,7 +125,7 @@ pub async fn technical_committee_vote(
) -> anyhow::Result<(), subxt::Error> { ) -> anyhow::Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::technical_committee::events::Voted, runtime::technical_committee::events::Voted,
Payload<runtime::technical_committee::calls::types::Vote>, StaticPayload<runtime::technical_committee::calls::types::Vote>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -147,7 +147,7 @@ pub async fn technical_committee_propose( ...@@ -147,7 +147,7 @@ pub async fn technical_committee_propose(
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::technical_committee::events::Proposed, runtime::technical_committee::events::Proposed,
Payload<runtime::technical_committee::calls::types::Propose>, StaticPayload<runtime::technical_committee::calls::types::Propose>,
>(data, &payload) >(data, &payload)
.await .await
} }
...@@ -4,7 +4,7 @@ use crate::*; ...@@ -4,7 +4,7 @@ use crate::*;
pub async fn request_distance_evaluation(data: &Data) -> Result<(), subxt::Error> { pub async fn request_distance_evaluation(data: &Data) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::distance::events::EvaluationRequested, runtime::distance::events::EvaluationRequested,
Payload<runtime::distance::calls::types::RequestDistanceEvaluation>, StaticPayload<runtime::distance::calls::types::RequestDistanceEvaluation>,
>( >(
data, data,
&runtime::tx().distance().request_distance_evaluation(), &runtime::tx().distance().request_distance_evaluation(),
...@@ -19,7 +19,7 @@ pub async fn request_distance_evaluation_for( ...@@ -19,7 +19,7 @@ pub async fn request_distance_evaluation_for(
) -> Result<(), subxt::Error> { ) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::distance::events::EvaluationRequested, runtime::distance::events::EvaluationRequested,
Payload<runtime::distance::calls::types::RequestDistanceEvaluationFor>, StaticPayload<runtime::distance::calls::types::RequestDistanceEvaluationFor>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
......
...@@ -438,7 +438,7 @@ pub async fn get_identity_by_index( ...@@ -438,7 +438,7 @@ pub async fn get_identity_by_index(
pub async fn create_identity(data: &Data, target: AccountId) -> Result<(), subxt::Error> { pub async fn create_identity(data: &Data, target: AccountId) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::identity::events::IdtyCreated, runtime::identity::events::IdtyCreated,
Payload<runtime::identity::calls::types::CreateIdentity>, StaticPayload<runtime::identity::calls::types::CreateIdentity>,
>(data, &runtime::tx().identity().create_identity(target)) >(data, &runtime::tx().identity().create_identity(target))
.await .await
} }
...@@ -447,7 +447,7 @@ pub async fn create_identity(data: &Data, target: AccountId) -> Result<(), subxt ...@@ -447,7 +447,7 @@ pub async fn create_identity(data: &Data, target: AccountId) -> Result<(), subxt
pub async fn confirm_identity(data: &Data, name: String) -> Result<(), subxt::Error> { pub async fn confirm_identity(data: &Data, name: String) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::identity::events::IdtyConfirmed, runtime::identity::events::IdtyConfirmed,
Payload<runtime::identity::calls::types::ConfirmIdentity>, StaticPayload<runtime::identity::calls::types::ConfirmIdentity>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -468,7 +468,7 @@ pub async fn revoke_identity(data: &Data) -> Result<(), subxt::Error> { ...@@ -468,7 +468,7 @@ pub async fn revoke_identity(data: &Data) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::identity::events::IdtyRemoved, runtime::identity::events::IdtyRemoved,
Payload<runtime::identity::calls::types::RevokeIdentity>, StaticPayload<runtime::identity::calls::types::RevokeIdentity>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -546,7 +546,7 @@ pub async fn link_account( ...@@ -546,7 +546,7 @@ pub async fn link_account(
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::account::events::AccountLinked, runtime::account::events::AccountLinked,
Payload<runtime::identity::calls::types::LinkAccount>, StaticPayload<runtime::identity::calls::types::LinkAccount>,
>( >(
data, data,
&runtime::tx().identity().link_account(address, signature), &runtime::tx().identity().link_account(address, signature),
...@@ -575,7 +575,7 @@ pub async fn change_owner_key( ...@@ -575,7 +575,7 @@ pub async fn change_owner_key(
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::identity::events::IdtyChangedOwnerKey, runtime::identity::events::IdtyChangedOwnerKey,
Payload<runtime::identity::calls::types::ChangeOwnerKey>, StaticPayload<runtime::identity::calls::types::ChangeOwnerKey>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
......
...@@ -93,7 +93,7 @@ pub async fn create_oneshot_account( ...@@ -93,7 +93,7 @@ pub async fn create_oneshot_account(
) -> Result<(), subxt::Error> { ) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::oneshot_account::events::OneshotAccountCreated, runtime::oneshot_account::events::OneshotAccountCreated,
Payload<runtime::oneshot_account::calls::types::CreateOneshotAccount>, StaticPayload<runtime::oneshot_account::calls::types::CreateOneshotAccount>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -127,7 +127,7 @@ pub async fn consume_oneshot_account( ...@@ -127,7 +127,7 @@ pub async fn consume_oneshot_account(
); );
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::oneshot_account::events::OneshotAccountConsumed, runtime::oneshot_account::events::OneshotAccountConsumed,
Payload<runtime::oneshot_account::calls::types::ConsumeOneshotAccount>, StaticPayload<runtime::oneshot_account::calls::types::ConsumeOneshotAccount>,
>(data, payload) >(data, payload)
.await .await
} }
...@@ -174,7 +174,7 @@ pub async fn consume_oneshot_account_with_remaining( ...@@ -174,7 +174,7 @@ pub async fn consume_oneshot_account_with_remaining(
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::oneshot_account::events::OneshotAccountConsumed, runtime::oneshot_account::events::OneshotAccountConsumed,
Payload<runtime::oneshot_account::calls::types::ConsumeOneshotAccountWithRemaining>, StaticPayload<runtime::oneshot_account::calls::types::ConsumeOneshotAccountWithRemaining>,
>(data, payload) >(data, payload)
.await .await
} }
...@@ -131,7 +131,7 @@ pub async fn set_session_keys( ...@@ -131,7 +131,7 @@ pub async fn set_session_keys(
data: &Data, data: &Data,
session_keys: RuntimeSessionKeys, session_keys: RuntimeSessionKeys,
) -> Result<TxProgress, subxt::Error> { ) -> Result<TxProgress, subxt::Error> {
submit_call::<Payload<runtime::authority_members::calls::types::SetSessionKeys>>( submit_call::<StaticPayload<runtime::authority_members::calls::types::SetSessionKeys>>(
data, data,
&runtime::tx() &runtime::tx()
.authority_members() .authority_members()
...@@ -174,7 +174,7 @@ pub async fn go_online(data: &Data) -> Result<(), GcliError> { ...@@ -174,7 +174,7 @@ pub async fn go_online(data: &Data) -> Result<(), GcliError> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::authority_members::events::MemberGoOnline, runtime::authority_members::events::MemberGoOnline,
Payload<runtime::authority_members::calls::types::GoOnline>, StaticPayload<runtime::authority_members::calls::types::GoOnline>,
>(data, &runtime::tx().authority_members().go_online()) >(data, &runtime::tx().authority_members().go_online())
.await .await
.map_err(|e| e.into()) .map_err(|e| e.into())
...@@ -184,7 +184,7 @@ pub async fn go_online(data: &Data) -> Result<(), GcliError> { ...@@ -184,7 +184,7 @@ pub async fn go_online(data: &Data) -> Result<(), GcliError> {
pub async fn go_offline(data: &Data) -> Result<(), subxt::Error> { pub async fn go_offline(data: &Data) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::authority_members::events::MemberGoOffline, runtime::authority_members::events::MemberGoOffline,
Payload<runtime::authority_members::calls::types::GoOffline>, StaticPayload<runtime::authority_members::calls::types::GoOffline>,
>(data, &runtime::tx().authority_members().go_offline()) >(data, &runtime::tx().authority_members().go_offline())
.await .await
} }
...@@ -285,7 +285,7 @@ pub async fn online(data: &Data) -> Result<(), anyhow::Error> { ...@@ -285,7 +285,7 @@ pub async fn online(data: &Data) -> Result<(), anyhow::Error> {
pub async fn invite_smith(data: &Data, target: IdtyId) -> Result<(), subxt::Error> { pub async fn invite_smith(data: &Data, target: IdtyId) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::smith_members::events::InvitationSent, runtime::smith_members::events::InvitationSent,
Payload<runtime::smith_members::calls::types::InviteSmith>, StaticPayload<runtime::smith_members::calls::types::InviteSmith>,
>(data, &runtime::tx().smith_members().invite_smith(target)) >(data, &runtime::tx().smith_members().invite_smith(target))
.await .await
} }
...@@ -294,7 +294,7 @@ pub async fn invite_smith(data: &Data, target: IdtyId) -> Result<(), subxt::Erro ...@@ -294,7 +294,7 @@ pub async fn invite_smith(data: &Data, target: IdtyId) -> Result<(), subxt::Erro
pub async fn accept_invitation(data: &Data) -> Result<(), subxt::Error> { pub async fn accept_invitation(data: &Data) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::smith_members::events::InvitationAccepted, runtime::smith_members::events::InvitationAccepted,
Payload<runtime::smith_members::calls::types::AcceptInvitation>, StaticPayload<runtime::smith_members::calls::types::AcceptInvitation>,
>(data, &runtime::tx().smith_members().accept_invitation()) >(data, &runtime::tx().smith_members().accept_invitation())
.await .await
} }
...@@ -303,7 +303,7 @@ pub async fn accept_invitation(data: &Data) -> Result<(), subxt::Error> { ...@@ -303,7 +303,7 @@ pub async fn accept_invitation(data: &Data) -> Result<(), subxt::Error> {
pub async fn certify_smith(data: &Data, target: IdtyId) -> Result<(), subxt::Error> { pub async fn certify_smith(data: &Data, target: IdtyId) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::smith_members::events::SmithCertAdded, runtime::smith_members::events::SmithCertAdded,
Payload<runtime::smith_members::calls::types::CertifySmith>, StaticPayload<runtime::smith_members::calls::types::CertifySmith>,
>(data, &runtime::tx().smith_members().certify_smith(target)) >(data, &runtime::tx().smith_members().certify_smith(target))
.await .await
} }
...@@ -33,7 +33,7 @@ pub async fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliE ...@@ -33,7 +33,7 @@ pub async fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliE
pub async fn set_key(data: &Data, new_key: AccountId) -> Result<(), subxt::Error> { pub async fn set_key(data: &Data, new_key: AccountId) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::sudo::events::KeyChanged, runtime::sudo::events::KeyChanged,
Payload<runtime::sudo::calls::types::SetKey>, StaticPayload<runtime::sudo::calls::types::SetKey>,
>(data, &runtime::tx().sudo().set_key(new_key.into())) >(data, &runtime::tx().sudo().set_key(new_key.into()))
.await .await
} }
...@@ -44,7 +44,7 @@ pub async fn set_distance_ok(data: &Data, identity: IdtyId) -> Result<(), subxt: ...@@ -44,7 +44,7 @@ pub async fn set_distance_ok(data: &Data, identity: IdtyId) -> Result<(), subxt:
let inner = runtime::Call::Distance(inner); let inner = runtime::Call::Distance(inner);
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::sudo::events::Sudid, runtime::sudo::events::Sudid,
Payload<runtime::sudo::calls::types::Sudo>, StaticPayload<runtime::sudo::calls::types::Sudo>,
>(data, &runtime::tx().sudo().sudo(inner)) >(data, &runtime::tx().sudo().sudo(inner))
.await .await
} }
...@@ -16,7 +16,7 @@ pub async fn transfer( ...@@ -16,7 +16,7 @@ pub async fn transfer(
(true, false) => { (true, false) => {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::balances::events::Transfer, runtime::balances::events::Transfer,
Payload<runtime::balances::calls::types::TransferKeepAlive>, StaticPayload<runtime::balances::calls::types::TransferKeepAlive>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -28,7 +28,7 @@ pub async fn transfer( ...@@ -28,7 +28,7 @@ pub async fn transfer(
(false, false) => { (false, false) => {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::balances::events::Transfer, runtime::balances::events::Transfer,
Payload<runtime::balances::calls::types::TransferAllowDeath>, StaticPayload<runtime::balances::calls::types::TransferAllowDeath>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -40,7 +40,7 @@ pub async fn transfer( ...@@ -40,7 +40,7 @@ pub async fn transfer(
(true, true) => { (true, true) => {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::balances::events::Transfer, runtime::balances::events::Transfer,
Payload<runtime::universal_dividend::calls::types::TransferUdKeepAlive>, StaticPayload<runtime::universal_dividend::calls::types::TransferUdKeepAlive>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -52,7 +52,7 @@ pub async fn transfer( ...@@ -52,7 +52,7 @@ pub async fn transfer(
(false, true) => { (false, true) => {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::balances::events::Transfer, runtime::balances::events::Transfer,
Payload<runtime::universal_dividend::calls::types::TransferUd>, StaticPayload<runtime::universal_dividend::calls::types::TransferUd>,
>( >(
data, data,
&runtime::tx() &runtime::tx()
...@@ -83,7 +83,7 @@ pub async fn transfer_multiple( ...@@ -83,7 +83,7 @@ pub async fn transfer_multiple(
// wrap these calls in a batch call // wrap these calls in a batch call
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::utility::events::BatchCompleted, runtime::utility::events::BatchCompleted,
Payload<runtime::utility::calls::types::Batch>, StaticPayload<runtime::utility::calls::types::Batch>,
>(data, &runtime::tx().utility().batch(transactions)) >(data, &runtime::tx().utility().batch(transactions))
.await .await
} }
...@@ -26,7 +26,7 @@ pub async fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliE ...@@ -26,7 +26,7 @@ pub async fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliE
pub async fn claim_ud(data: &Data) -> Result<(), subxt::Error> { pub async fn claim_ud(data: &Data) -> Result<(), subxt::Error> {
submit_call_and_look_event::< submit_call_and_look_event::<
runtime::universal_dividend::events::UdsClaimed, runtime::universal_dividend::events::UdsClaimed,
Payload<runtime::universal_dividend::calls::types::ClaimUds>, StaticPayload<runtime::universal_dividend::calls::types::ClaimUds>,
>(data, &runtime::tx().universal_dividend().claim_uds()) >(data, &runtime::tx().universal_dividend().claim_uds())
.await .await
} }
...@@ -86,7 +86,7 @@ pub fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliError> ...@@ -86,7 +86,7 @@ pub fn handle_command(data: Data, command: Subcommand) -> Result<(), GcliError>
} }
Subcommand::Save => { Subcommand::Save => {
confy::store(APP_NAME, None, &data.cfg).expect("unable to write config"); confy::store(APP_NAME, None, &data.cfg).expect("unable to write config");
println!("Configuration updated!"); println!("Configuration updated!");
} }
Subcommand::Default => { Subcommand::Default => {
confy::store(APP_NAME, None, Config::default()).expect("unable to write config"); confy::store(APP_NAME, None, Config::default()).expect("unable to write config");
......
...@@ -20,8 +20,7 @@ impl<'de> Deserialize<'de> for Bytea { ...@@ -20,8 +20,7 @@ impl<'de> Deserialize<'de> for Bytea {
// Deserialize as a string // Deserialize as a string
let hex_string = String::deserialize(deserializer)?; let hex_string = String::deserialize(deserializer)?;
// Parse the hexadecimal string into a byte vector // Parse the hexadecimal string into a byte vector
let bytes = let bytes = hex::decode(&hex_string[2..]).map_err(serde::de::Error::custom)?;
hex::decode(hex_string[2..].to_string()).map_err(|e| serde::de::Error::custom(e))?;
Ok(Bytea { bytes }) Ok(Bytea { bytes })
} }
} }
...@@ -37,7 +36,7 @@ macro_rules! graphql_query { ...@@ -37,7 +36,7 @@ macro_rules! graphql_query {
pub struct $name; pub struct $name;
}; };
} }
// repeat generation for multiple queries // repeat generation for multiple queries
macro_rules! graphql_query_for { macro_rules! graphql_query_for {
( $($Name:ident),+ ) => { ( $($Name:ident),+ ) => {
......
...@@ -22,10 +22,13 @@ use subxt::{ ...@@ -22,10 +22,13 @@ use subxt::{
config::DefaultExtrinsicParamsBuilder, config::DefaultExtrinsicParamsBuilder,
events::StaticEvent, events::StaticEvent,
ext::sp_core::{sr25519, Pair as _}, ext::sp_core::{sr25519, Pair as _},
tx::{PairSigner, Payload, TxPayload, TxStatus}, tx::{DefaultPayload, PairSigner, Payload, TxStatus},
}; };
use utils::*; use utils::*;
// alias
pub type StaticPayload<Calldata> = DefaultPayload<Calldata>;
/// define command line arguments /// define command line arguments
#[derive(Clone, clap::Parser, Debug, Default)] #[derive(Clone, clap::Parser, Debug, Default)]
#[clap(author, version, about, long_about = None)] #[clap(author, version, about, long_about = None)]
......
...@@ -26,10 +26,10 @@ pub async fn track_progress( ...@@ -26,10 +26,10 @@ pub async fn track_progress(
/// generic extrinsic submitter /// generic extrinsic submitter
pub async fn submit_call_and_look_event< pub async fn submit_call_and_look_event<
E: std::fmt::Debug + StaticEvent + DisplayEvent, E: std::fmt::Debug + StaticEvent + DisplayEvent,
Payload: TxPayload, TxPayload: Payload,
>( >(
data: &Data, data: &Data,
payload: &Payload, payload: &TxPayload,
) -> Result<(), subxt::Error> { ) -> Result<(), subxt::Error> {
// submit call // submit call
let progress = submit_call(data, payload).await?; let progress = submit_call(data, payload).await?;
...@@ -44,9 +44,9 @@ pub async fn submit_call_and_look_event< ...@@ -44,9 +44,9 @@ pub async fn submit_call_and_look_event<
} }
/// submit call /// submit call
pub async fn submit_call<Payload: TxPayload>( pub async fn submit_call<TxPayload: Payload>(
data: &Data, data: &Data,
payload: &Payload, payload: &TxPayload,
) -> Result<TxProgress, subxt::Error> { ) -> Result<TxProgress, subxt::Error> {
// get account nonce manually to be based on last block and not last finalized // get account nonce manually to be based on last block and not last finalized
let nonce = data let nonce = data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment