Skip to content

Commit

Permalink
fix warnings
Browse files Browse the repository at this point in the history
Signed-off-by: muraca <mmuraca247@gmail.com>
  • Loading branch information
muraca committed Nov 28, 2023
1 parent cfcdc2b commit f8824fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions tuxedo-core/src/inherents.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
//! that update environmental data), needs to include this foundational previous block inherent data provider
//! so that the Tuxedo executive can scrape it to find the output references of the previous inherent transactions.
use parity_scale_codec::{Decode, Encode};
use parity_scale_codec::Encode;
use scale_info::TypeInfo;
use sp_core::H256;
use sp_inherents::{
CheckInherentsResult, InherentData, InherentIdentifier, IsFatalError, MakeFatalError,
};
use sp_runtime::traits::Block as BlockT;
use sp_std::{vec, vec::Vec};

use crate::{types::Transaction, ConstraintChecker, Verifier};
Expand All @@ -59,7 +58,9 @@ impl<B> sp_std::ops::Deref for ParentBlockInherentDataProvider<B> {
}
#[cfg(feature = "std")]
#[async_trait::async_trait]
impl<B: BlockT> sp_inherents::InherentDataProvider for ParentBlockInherentDataProvider<B> {
impl<B: sp_runtime::traits::Block> sp_inherents::InherentDataProvider
for ParentBlockInherentDataProvider<B>
{
async fn provide_inherent_data(
&self,
inherent_data: &mut InherentData,
Expand All @@ -75,7 +76,7 @@ impl<B: BlockT> sp_inherents::InherentDataProvider for ParentBlockInherentDataPr
if identifier == &PARENT_INHERENT_IDENTIFIER {
println!("UH OH! INHERENT ERROR!!!!!!!!!!!!!!!!!!!!!!");
Some(Err(sp_inherents::Error::Application(Box::from(
String::decode(&mut &error[..]).ok()?,
<String as parity_scale_codec::Decode>::decode(&mut &error[..]).ok()?,
))))
} else {
None
Expand Down
5 changes: 2 additions & 3 deletions tuxedo-parachain-core/src/validate_block.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,13 @@ use cumulus_primitives_core::{
relay_chain::Hash as RHash, ParachainBlockData, PersistedValidationData,
};
use cumulus_primitives_parachain_inherent::ParachainInherentData;

use polkadot_parachain_primitives::primitives::{
HeadData, RelayChainBlockNumber, ValidationResult,
};
use tuxedo_core::{types::Transaction, ConstraintChecker, Executive, Verifier};

use cumulus_primitives_core::ParaId;
use parity_scale_codec::{Decode, Encode};
use parity_scale_codec::Encode;
use scale_info::TypeInfo;
use sp_core::storage::{ChildInfo, StateVersion};
use sp_externalities::{set_and_run_with_externalities, Externalities};
use sp_io::KillStorageResult;
Expand Down

0 comments on commit f8824fc

Please sign in to comment.