difftreelog
fix use fp checked extrinsic
in: master
1 file changed
runtime/src/lib.rsdiffbeforeafterboth899 //pallet_contract_helpers::ContractHelpersExtension<Runtime>,899 //pallet_contract_helpers::ContractHelpersExtension<Runtime>,900);900);901/// Unchecked extrinsic type as expected by this runtime.901/// Unchecked extrinsic type as expected by this runtime.902pub type UncheckedExtrinsic = generic::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;902pub type UncheckedExtrinsic =903 fp_self_contained::UncheckedExtrinsic<Address, Call, Signature, SignedExtra>;903/// Extrinsic type that has already been checked.904/// Extrinsic type that has already been checked.904pub type CheckedExtrinsic = generic::CheckedExtrinsic<AccountId, Call, SignedExtra>;905pub type CheckedExtrinsic = fp_self_contained::CheckedExtrinsic<AccountId, Call, SignedExtra, H160>;905/// Executive: handles dispatch to the various modules.906/// Executive: handles dispatch to the various modules.906pub type Executive = frame_executive::Executive<907pub type Executive = frame_executive::Executive<907 Runtime,908 Runtime,1144 }1145 }114511461146 fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {1147 fn extrinsic_filter(xts: Vec<<Block as sp_api::BlockT>::Extrinsic>) -> Vec<pallet_ethereum::Transaction> {1147 xts.into_iter().filter_map(|xt| match xt.function {1148 xts.into_iter().filter_map(|xt| match xt.0.function {1148 Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),1149 Call::Ethereum(pallet_ethereum::Call::transact { transaction }) => Some(transaction),1149 _ => None1150 _ => None1150 }).collect()1151 }).collect()