Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
clangenb committed Sep 9, 2025
commit df14f0d8a6eb58cebc553b77b88e4135bae060cd
4 changes: 1 addition & 3 deletions app-libs/parentchain-interface/src/extrinsic_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
use codec::{Decode, Encode};
use core::marker::PhantomData;
use itp_api_client_types::Preamble;
use itp_node_api::api_client::{
Address, CallIndex, PairSignature, UncheckedExtrinsic,
};
use itp_node_api::api_client::{Address, CallIndex, PairSignature, UncheckedExtrinsic};

pub struct ExtrinsicParser<SignedExtra> {
_phantom: PhantomData<SignedExtra>,
Expand Down
4 changes: 2 additions & 2 deletions app-libs/parentchain-interface/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ pub use substrate_api_client::{
ac_primitives::{
config::Config,
extrinsics::{
AssetTip, CallIndex, ExtrinsicParams, GenericAdditionalParams, GenericImplicit,
GenericExtrinsicParams, GenericTxExtension, PlainTip, UncheckedExtrinsic,
AssetTip, CallIndex, ExtrinsicParams, GenericAdditionalParams, GenericExtrinsicParams,
GenericImplicit, GenericTxExtension, PlainTip, UncheckedExtrinsic,
},
serde_impls::StorageKey,
signer::{SignExtrinsic, StaticExtrinsicSigner},
Expand Down
6 changes: 4 additions & 2 deletions cli/src/assets/commands/transfer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ impl TransferCommand {
location,
MultiAddress::<AccountId, ()>::Id(to_account),
Compact(self.amount)
).expect("Could not compose `transfer` call (call not found in metadata)");
)
.expect("Could not compose `transfer` call (call not found in metadata)");
info!("encoded call: {}", hex::encode(xt.function.encode()));
api.submit_and_watch_extrinsic_until(xt, XtStatus::InBlock).unwrap()
},
Expand All @@ -90,7 +91,8 @@ impl TransferCommand {
Compact(native_asset_id),
MultiAddress::<AccountId, ()>::Id(to_account),
Compact(self.amount)
).expect("Could not compose `transfer` call (call not found in metadata)");
)
.expect("Could not compose `transfer` call (call not found in metadata)");
info!("encoded call: {}", hex::encode(xt.function.encode()));
api.submit_and_watch_extrinsic_until(xt, XtStatus::InBlock).unwrap()
},
Expand Down
3 changes: 2 additions & 1 deletion cli/src/base_cli/commands/shield_funds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ impl ShieldFundsCommand {
shard,
encrypted_recevier,
self.amount
).expect("Could not compose `shield_fund` extrinsic (call not found in metadata)");
)
.expect("Could not compose `shield_fund` extrinsic (call not found in metadata)");

match chain_api.submit_and_watch_extrinsic_until(xt, XtStatus::Finalized) {
Ok(xt_report) => {
Expand Down
5 changes: 1 addition & 4 deletions core-primitives/extrinsics-factory/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,7 @@ where
"[ExtrinsicsFactory] TransactionExtension: {:?}",
extrinsic_params.transaction_extension()
);
log::trace!(
"[ExtrinsicsFactory] Implicit: {:?}",
extrinsic_params.implicit()
);
log::trace!("[ExtrinsicsFactory] Implicit: {:?}", extrinsic_params.implicit());

let xt = compose_extrinsic_offline!(&self.signer, call, extrinsic_params).encode();
nonce_value += 1;
Expand Down
5 changes: 3 additions & 2 deletions core-primitives/node-api/api-client-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ pub use substrate_api_client::{
ac_primitives::{
config::{AssetRuntimeConfig, Config, DefaultRuntimeConfig},
extrinsics::{
AssetTip, CallIndex, ExtrinsicParams, GenericAdditionalParams, GenericImplicit,
GenericExtrinsicParams, GenericTxExtension, PlainTip, UncheckedExtrinsic, Preamble as GenericPreamble,
AssetTip, CallIndex, ExtrinsicParams, GenericAdditionalParams, GenericExtrinsicParams,
GenericImplicit, GenericTxExtension, PlainTip, Preamble as GenericPreamble,
UncheckedExtrinsic,
},
serde_impls::StorageKey,
signer::{SignExtrinsic, StaticExtrinsicSigner},
Expand Down
2 changes: 1 addition & 1 deletion core/parentchain/indirect-calls-executor/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ use itp_node_api::{
metadata::NodeMetadataTrait,
};
use itp_sgx_runtime_primitives::types::{AccountId, Balance};
use itp_stf_primitives::{traits::IndirectExecutor};
use itp_stf_primitives::traits::IndirectExecutor;
use itp_test::mock::stf_mock::{GetterMock, TrustedCallMock, TrustedCallSignedMock};
use itp_types::{
parentchain::{ExtrinsicStatus, FilterEvents, HandleParentchainEvents},
Expand Down
3 changes: 2 additions & 1 deletion service/src/account_funding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,8 @@ where
api.set_signer(alice.into());

println!("[{:?}] send extrinsic: bootstrap funding Enclave from Alice's funds", parentchain_id);
let xt = api.balance_transfer_allow_death(MultiAddress::Id(accountid.clone()), funding_amount)
let xt = api
.balance_transfer_allow_death(MultiAddress::Id(accountid.clone()), funding_amount)
.ok_or(Error::Custom("Could not create funding extrinsic".into()))?;
let xt_report = api.submit_and_watch_extrinsic_until(xt, XtStatus::InBlock)?;
info!(
Expand Down
Loading