Skip to content

Commit

Permalink
get rid of extra traits
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Feb 5, 2025
1 parent 571aaaa commit e692fdd
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions substrate/frame/revive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ use frame_system::{
pallet_prelude::{BlockNumberFor, OriginFor},
Pallet as System,
};
use pallet_transaction_payment::OnChargeTransaction;
use scale_info::TypeInfo;
use sp_core::{H160, H256, U256};
use sp_runtime::{
Expand All @@ -92,7 +91,6 @@ pub use crate::wasm::SyscallDoc;
type TrieId = BoundedVec<u8, ConstU32<128>>;
type BalanceOf<T> =
<<T as Config>::Currency as Inspect<<T as frame_system::Config>::AccountId>>::Balance;
type OnChargeTransactionBalanceOf<T> = <<T as pallet_transaction_payment::Config>::OnChargeTransaction as OnChargeTransaction<T>>::Balance;
type CodeVec = BoundedVec<u8, ConstU32<{ limits::code::BLOB_BYTES }>>;
type ImmutableData = BoundedVec<u8, ConstU32<{ limits::IMMUTABLE_BYTES }>>;

Expand Down Expand Up @@ -1118,12 +1116,10 @@ where
tx_fee: impl Fn(Call<T>, DispatchInfo) -> BalanceOf<T>,
) -> Result<EthTransactInfo<BalanceOf<T>>, EthTransactError>
where
T: pallet_transaction_payment::Config,
<T as frame_system::Config>::RuntimeCall:
Dispatchable<Info = frame_support::dispatch::DispatchInfo>,
<T as Config>::RuntimeCall: From<crate::Call<T>>,
<T as Config>::RuntimeCall: Encode,
OnChargeTransactionBalanceOf<T>: Into<BalanceOf<T>>,
T::Nonce: Into<U256>,
T::Hash: frame_support::traits::IsType<H256>,
{
Expand Down

0 comments on commit e692fdd

Please sign in to comment.