mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 07:45:49 +00:00
remove some unecessary bound (#7813)
This commit is contained in:
committed by
GitHub
parent
ec2c70396e
commit
ab4c8e4fe5
@@ -73,7 +73,7 @@ impl<C, Block, Balance> TransactionPaymentApi<<Block as BlockT>::Hash, RuntimeDi
|
|||||||
for TransactionPayment<C, Block>
|
for TransactionPayment<C, Block>
|
||||||
where
|
where
|
||||||
Block: BlockT,
|
Block: BlockT,
|
||||||
C: Send + Sync + 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
|
C: 'static + ProvideRuntimeApi<Block> + HeaderBackend<Block>,
|
||||||
C::Api: TransactionPaymentRuntimeApi<Block, Balance>,
|
C::Api: TransactionPaymentRuntimeApi<Block, Balance>,
|
||||||
Balance: Codec + MaybeDisplay + MaybeFromStr,
|
Balance: Codec + MaybeDisplay + MaybeFromStr,
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -314,8 +314,6 @@ impl<T: Config> Module<T> where
|
|||||||
len: u32,
|
len: u32,
|
||||||
) -> RuntimeDispatchInfo<BalanceOf<T>>
|
) -> RuntimeDispatchInfo<BalanceOf<T>>
|
||||||
where
|
where
|
||||||
T: Send + Sync,
|
|
||||||
BalanceOf<T>: Send + Sync,
|
|
||||||
T::Call: Dispatchable<Info=DispatchInfo>,
|
T::Call: Dispatchable<Info=DispatchInfo>,
|
||||||
{
|
{
|
||||||
// NOTE: we can actually make it understand `ChargeTransactionPayment`, but would be some
|
// NOTE: we can actually make it understand `ChargeTransactionPayment`, but would be some
|
||||||
@@ -444,9 +442,9 @@ impl<T> Convert<Weight, BalanceOf<T>> for Module<T> where
|
|||||||
/// Require the transactor pay for themselves and maybe include a tip to gain additional priority
|
/// Require the transactor pay for themselves and maybe include a tip to gain additional priority
|
||||||
/// in the queue.
|
/// in the queue.
|
||||||
#[derive(Encode, Decode, Clone, Eq, PartialEq)]
|
#[derive(Encode, Decode, Clone, Eq, PartialEq)]
|
||||||
pub struct ChargeTransactionPayment<T: Config + Send + Sync>(#[codec(compact)] BalanceOf<T>);
|
pub struct ChargeTransactionPayment<T: Config>(#[codec(compact)] BalanceOf<T>);
|
||||||
|
|
||||||
impl<T: Config + Send + Sync> ChargeTransactionPayment<T> where
|
impl<T: Config> ChargeTransactionPayment<T> where
|
||||||
T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo>,
|
T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo>,
|
||||||
BalanceOf<T>: Send + Sync + FixedPointOperand,
|
BalanceOf<T>: Send + Sync + FixedPointOperand,
|
||||||
{
|
{
|
||||||
@@ -494,7 +492,7 @@ impl<T: Config + Send + Sync> ChargeTransactionPayment<T> where
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Config + Send + Sync> sp_std::fmt::Debug for ChargeTransactionPayment<T> {
|
impl<T: Config> sp_std::fmt::Debug for ChargeTransactionPayment<T> {
|
||||||
#[cfg(feature = "std")]
|
#[cfg(feature = "std")]
|
||||||
fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
|
fn fmt(&self, f: &mut sp_std::fmt::Formatter) -> sp_std::fmt::Result {
|
||||||
write!(f, "ChargeTransactionPayment<{:?}>", self.0)
|
write!(f, "ChargeTransactionPayment<{:?}>", self.0)
|
||||||
@@ -505,7 +503,7 @@ impl<T: Config + Send + Sync> sp_std::fmt::Debug for ChargeTransactionPayment<T>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Config + Send + Sync> SignedExtension for ChargeTransactionPayment<T> where
|
impl<T: Config> SignedExtension for ChargeTransactionPayment<T> where
|
||||||
BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
|
BalanceOf<T>: Send + Sync + From<u64> + FixedPointOperand,
|
||||||
T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo>,
|
T::Call: Dispatchable<Info=DispatchInfo, PostInfo=PostDispatchInfo>,
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user