mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 09:57:56 +00:00
This PR reverts #2280 which introduced `TransactionExtension` to replace `SignedExtension`. As a result of the discussion [here](https://github.com/paritytech/polkadot-sdk/pull/3623#issuecomment-1986789700), the changes will be reverted for now with plans to reintroduce the concept in the future. --------- Signed-off-by: georgepisaltu <george.pisaltu@parity.io>
This commit is contained in:
@@ -54,11 +54,11 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
|
||||
GENESIS_HASH.into(),
|
||||
vec![
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Bare,
|
||||
signed: None,
|
||||
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time1 }),
|
||||
},
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(0, 0)),
|
||||
signed: Some((charlie(), signed_extra(0, 0))),
|
||||
function: RuntimeCall::Sudo(pallet_sudo::Call::sudo {
|
||||
call: Box::new(RuntimeCall::RootTesting(
|
||||
pallet_root_testing::Call::fill_block { ratio: Perbill::from_percent(60) },
|
||||
@@ -77,11 +77,11 @@ fn fee_multiplier_increases_and_decreases_on_big_weight() {
|
||||
block1.1,
|
||||
vec![
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Bare,
|
||||
signed: None,
|
||||
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time2 }),
|
||||
},
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Signed(charlie(), tx_ext(1, 0)),
|
||||
signed: Some((charlie(), signed_extra(1, 0))),
|
||||
function: RuntimeCall::System(frame_system::Call::remark { remark: vec![0; 1] }),
|
||||
},
|
||||
],
|
||||
@@ -147,7 +147,7 @@ fn transaction_fee_is_correct() {
|
||||
|
||||
let tip = 1_000_000;
|
||||
let xt = sign(CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Signed(alice(), tx_ext(0, tip)),
|
||||
signed: Some((alice(), signed_extra(0, tip))),
|
||||
function: RuntimeCall::Balances(default_transfer_call()),
|
||||
});
|
||||
|
||||
@@ -211,10 +211,7 @@ fn block_weight_capacity_report() {
|
||||
let num_transfers = block_number * factor;
|
||||
let mut xts = (0..num_transfers)
|
||||
.map(|i| CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Signed(
|
||||
charlie(),
|
||||
tx_ext(nonce + i as Nonce, 0),
|
||||
),
|
||||
signed: Some((charlie(), signed_extra(nonce + i as Nonce, 0))),
|
||||
function: RuntimeCall::Balances(pallet_balances::Call::transfer_allow_death {
|
||||
dest: bob().into(),
|
||||
value: 0,
|
||||
@@ -225,7 +222,7 @@ fn block_weight_capacity_report() {
|
||||
xts.insert(
|
||||
0,
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Bare,
|
||||
signed: None,
|
||||
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set { now: time * 1000 }),
|
||||
},
|
||||
);
|
||||
@@ -288,16 +285,13 @@ fn block_length_capacity_report() {
|
||||
previous_hash,
|
||||
vec![
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Bare,
|
||||
signed: None,
|
||||
function: RuntimeCall::Timestamp(pallet_timestamp::Call::set {
|
||||
now: time * 1000,
|
||||
}),
|
||||
},
|
||||
CheckedExtrinsic {
|
||||
format: sp_runtime::generic::ExtrinsicFormat::Signed(
|
||||
charlie(),
|
||||
tx_ext(nonce, 0),
|
||||
),
|
||||
signed: Some((charlie(), signed_extra(nonce, 0))),
|
||||
function: RuntimeCall::System(frame_system::Call::remark {
|
||||
remark: vec![0u8; (block_number * factor) as usize],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user