Skip to content

Commit

Permalink
rm comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Feb 22, 2024
1 parent 8523472 commit 0ae1a08
Showing 1 changed file with 0 additions and 32 deletions.
32 changes: 0 additions & 32 deletions drink/src/sandbox/runtime_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,38 +7,6 @@ use super::Sandbox;
use crate::{DrinkResult, Error};

impl<Config: crate::SandboxConfig> Sandbox<Config> {
// Creates a new sandbox.
//
// Returns an error if the storage could not be initialized.
//
// The storage is initialized with a genesis block with a single account `R::default_actor()` with
// `INITIAL_BALANCE`.
// pub fn new() -> DrinkResult<Self> {
// // let mut storage = GenesisConfig::<Config::Runtime>::default()
// // .build_storage()
// // .map_err(Error::StorageBuilding)?;
// //
// // Config::initialize_storage(&mut storage).map_err(Error::StorageBuilding)?;
//
// let mut sandbox = Self {
// externalities: TestExternalities::new(storage),
// _phantom: Default::default(),
// };
//
// sandbox
// // We start the chain from the 1st block, so that events are collected (they are not
// // recorded for the genesis block...).
// .execute_with(|| {
// Config::initialize_block(
// BlockNumberFor::<Config::Runtime>::one(),
// Default::default(),
// )
// })
// .map_err(Error::BlockInitialize)?;

// Ok(sandbox)
// }

/// Build a new empty block and return the new height.
pub fn build_block(&mut self) -> DrinkResult<BlockNumberFor<Config::Runtime>> {
self.execute_with(|| {
Expand Down

0 comments on commit 0ae1a08

Please sign in to comment.