Skip to content

Commit

Permalink
Rename SignedExtra to TxExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
Niederb committed Mar 13, 2024
1 parent 273d951 commit b4cdaa5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions primitives/src/extrinsics/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,10 +254,10 @@ mod tests {
CheckEra, CheckGenesis, CheckNonZeroSender, CheckNonce, CheckSpecVersion, CheckTxVersion,
CheckWeight,
};
use pallet_transaction_payment::ChargeTransactionPayment;
use solochain_template_runtime::{
BalancesCall, Runtime, RuntimeCall, SignedExtra, SystemCall, UncheckedExtrinsic, VERSION,
BalancesCall, Runtime, RuntimeCall, SystemCall, TxExtension, UncheckedExtrinsic, VERSION,
};
use pallet_transaction_payment::ChargeTransactionPayment;
use sp_core::{crypto::Ss58Codec, Pair, H256 as Hash};
use sp_keyring::AccountKeyring;
use sp_runtime::{
Expand Down Expand Up @@ -312,14 +312,14 @@ mod tests {
MultiAddress<AccountId32, u32>,
RuntimeCall,
MultiSignature,
SignedExtra,
TxExtension,
>::new_unsigned(call1.clone());
let json = serde_json::to_string(&xt1).expect("serializing failed");
let extrinsic: UncheckedExtrinsicV4<
MultiAddress<AccountId32, u32>,
RuntimeCall,
MultiSignature,
SignedExtra,
TxExtension,
> = serde_json::from_str(&json).expect("deserializing failed");
let call = extrinsic.function;
assert_eq!(call, call1);
Expand All @@ -342,7 +342,7 @@ mod tests {
let fee = 100;

// Create Substrate extrinsic.
let substrate_signed_extra: SignedExtra = (
let substrate_signed_extra: TxExtension = (
CheckNonZeroSender::<Runtime>::new(),
CheckSpecVersion::<Runtime>::new(),
CheckTxVersion::<Runtime>::new(),
Expand Down Expand Up @@ -399,7 +399,7 @@ mod tests {
let fee = 100;

// Create Substrate extrinsic.
let substrate_signed_extra: SignedExtra = (
let substrate_signed_extra: TxExtension = (
CheckNonZeroSender::<Runtime>::new(),
CheckSpecVersion::<Runtime>::new(),
CheckTxVersion::<Runtime>::new(),
Expand Down

0 comments on commit b4cdaa5

Please sign in to comment.