Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
aurexav committed Feb 15, 2023
1 parent 923d8eb commit 7b847ed
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion pallet/message-gadget/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ use frame_support::{log, pallet_prelude::*, traits::Get};
use frame_system::pallet_prelude::*;
use sp_core::{H160, H256};
use sp_io::hashing;
use sp_std::vec;
use sp_std::prelude::*;

#[frame_support::pallet]
pub mod pallet {
Expand Down
2 changes: 1 addition & 1 deletion precompile/bls12-381/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ use milagro_bls::{AggregatePublicKey, AggregateSignature, PublicKey, Signature};
// moonbeam
use precompile_utils::prelude::*;
// substrate
use sp_std::vec::Vec;
use sp_std::prelude::*;

pub(crate) const VERIFY_ESTIMATED_COST: u64 = 100_000;
pub struct BLS12381<T>(PhantomData<T>);
Expand Down
2 changes: 1 addition & 1 deletion precompile/staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use frame_support::{
};
use sp_core::{H160, U256};
use sp_runtime::Perbill;
use sp_std::vec::Vec;
use sp_std::prelude::*;

pub struct Staking<Runtime>(PhantomData<Runtime>);

Expand Down
5 changes: 3 additions & 2 deletions runtime/pangolin/src/migration.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
// darwinia
#[allow(unused_imports)]
use crate::*;
// substrate

pub struct CustomOnRuntimeUpgrade;
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<sp_std::vec::Vec<u8>, &'static str> {
Ok(sp_std::vec::Vec::new())
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
Ok(Vec::new())
}

#[cfg(feature = "try-runtime")]
Expand Down
4 changes: 2 additions & 2 deletions runtime/pangoro/src/migration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ use crate::*;
pub struct CustomOnRuntimeUpgrade;
impl frame_support::traits::OnRuntimeUpgrade for CustomOnRuntimeUpgrade {
#[cfg(feature = "try-runtime")]
fn pre_upgrade() -> Result<sp_std::vec::Vec<u8>, &'static str> {
Ok(sp_std::vec::Vec::new())
fn pre_upgrade() -> Result<Vec<u8>, &'static str> {
Ok(Vec::new())
}

#[cfg(feature = "try-runtime")]
Expand Down

0 comments on commit 7b847ed

Please sign in to comment.