Revert "FRAME: Create TransactionExtension as a replacement for SignedExtension (#2280)" (#3665)

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:
georgepisaltu
2024-03-13 16:10:59 +02:00
committed by GitHub
parent 60ac5a723c
commit bbd51ce867
350 changed files with 15826 additions and 24304 deletions
+8 -10
View File
@@ -189,7 +189,7 @@ fn westend_sign_call(
use sp_core::Pair;
use westend_runtime as runtime;
let tx_ext: runtime::TxExtension = (
let extra: runtime::SignedExtra = (
frame_system::CheckNonZeroSender::<runtime::Runtime>::new(),
frame_system::CheckSpecVersion::<runtime::Runtime>::new(),
frame_system::CheckTxVersion::<runtime::Runtime>::new(),
@@ -201,12 +201,11 @@ fn westend_sign_call(
frame_system::CheckNonce::<runtime::Runtime>::from(nonce),
frame_system::CheckWeight::<runtime::Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<runtime::Runtime>::from(0),
)
.into();
);
let payload = runtime::SignedPayload::from_raw(
call.clone(),
tx_ext.clone(),
extra.clone(),
(
(),
runtime::VERSION.spec_version,
@@ -224,7 +223,7 @@ fn westend_sign_call(
call,
sp_runtime::AccountId32::from(acc.public()).into(),
polkadot_core_primitives::Signature::Sr25519(signature.clone()),
tx_ext,
extra,
)
.into()
}
@@ -242,7 +241,7 @@ fn rococo_sign_call(
use rococo_runtime as runtime;
use sp_core::Pair;
let tx_ext: runtime::TxExtension = (
let extra: runtime::SignedExtra = (
frame_system::CheckNonZeroSender::<runtime::Runtime>::new(),
frame_system::CheckSpecVersion::<runtime::Runtime>::new(),
frame_system::CheckTxVersion::<runtime::Runtime>::new(),
@@ -254,12 +253,11 @@ fn rococo_sign_call(
frame_system::CheckNonce::<runtime::Runtime>::from(nonce),
frame_system::CheckWeight::<runtime::Runtime>::new(),
pallet_transaction_payment::ChargeTransactionPayment::<runtime::Runtime>::from(0),
)
.into();
);
let payload = runtime::SignedPayload::from_raw(
call.clone(),
tx_ext.clone(),
extra.clone(),
(
(),
runtime::VERSION.spec_version,
@@ -277,7 +275,7 @@ fn rococo_sign_call(
call,
sp_runtime::AccountId32::from(acc.public()).into(),
polkadot_core_primitives::Signature::Sr25519(signature.clone()),
tx_ext,
extra,
)
.into()
}