mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-12 22:51:13 +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:
@@ -22,11 +22,7 @@ use core::marker::PhantomData;
|
||||
|
||||
/// Weight functions for `{{pallet}}`.
|
||||
pub struct WeightInfo<T>(PhantomData<T>);
|
||||
{{#if (eq pallet "frame_system_extensions")}}
|
||||
impl<T: frame_system::Config> frame_system::ExtensionsWeightInfo for WeightInfo<T> {
|
||||
{{else}}
|
||||
impl<T: frame_system::Config> {{pallet}}::WeightInfo for WeightInfo<T> {
|
||||
{{/if}}
|
||||
{{#each benchmarks as |benchmark|}}
|
||||
{{#each benchmark.comments as |comment|}}
|
||||
/// {{comment}}
|
||||
|
||||
@@ -1204,9 +1204,8 @@ where
|
||||
#[cfg(test)]
|
||||
mod test_prelude {
|
||||
pub(crate) use super::*;
|
||||
pub(crate) use sp_runtime::testing::{Block as RawBlock, MockCallU64};
|
||||
pub(crate) type UncheckedXt = sp_runtime::generic::UncheckedExtrinsic<u64, MockCallU64, (), ()>;
|
||||
pub(crate) type Block = RawBlock<UncheckedXt>;
|
||||
pub(crate) use sp_runtime::testing::{Block as RawBlock, ExtrinsicWrapper, H256 as Hash};
|
||||
pub(crate) type Block = RawBlock<ExtrinsicWrapper<Hash>>;
|
||||
|
||||
pub(crate) fn init_logger() {
|
||||
sp_tracing::try_init_simple();
|
||||
|
||||
@@ -199,15 +199,11 @@ where
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
use sp_runtime::{
|
||||
generic::UncheckedExtrinsic,
|
||||
testing::{Block as TBlock, Header, MockCallU64, H256},
|
||||
};
|
||||
use sp_runtime::testing::{Block as TBlock, ExtrinsicWrapper, Header, H256};
|
||||
use std::sync::Arc;
|
||||
use tokio::sync::Mutex;
|
||||
|
||||
type UncheckedXt = UncheckedExtrinsic<u64, MockCallU64, (), ()>;
|
||||
type Block = TBlock<UncheckedXt>;
|
||||
type Block = TBlock<ExtrinsicWrapper<()>>;
|
||||
type BlockNumber = u64;
|
||||
type Hash = H256;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user