mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-09 20:59:23 +00:00
Remove the timestamp pallet
It was needed for contracts, which has since been removed. We now no longer need it.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
use std::{sync::Arc, time::Duration};
|
||||
use std::sync::Arc;
|
||||
|
||||
use sp_core::{Encode, Pair};
|
||||
use sp_keyring::Sr25519Keyring;
|
||||
use sp_inherents::{InherentData, InherentDataProvider};
|
||||
use sp_inherents::InherentData;
|
||||
|
||||
use sp_runtime::OpaqueExtrinsic;
|
||||
|
||||
@@ -87,11 +87,5 @@ pub fn create_benchmark_extrinsic(
|
||||
}
|
||||
|
||||
pub fn inherent_benchmark_data() -> Result<InherentData> {
|
||||
let mut inherent_data = InherentData::new();
|
||||
futures::executor::block_on(
|
||||
sp_timestamp::InherentDataProvider::new(Duration::from_millis(0).into())
|
||||
.provide_inherent_data(&mut inherent_data),
|
||||
)
|
||||
.map_err(|e| format!("creating inherent data: {e:?}"))?;
|
||||
Ok(inherent_data)
|
||||
Ok(InherentData::new())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user