Skip to content
Permalink
Browse files

add more toward the skeleton state apply

  • Loading branch information...
vincenthz committed Mar 12, 2019
1 parent a178d37 commit 2a6ddc08ceb33b4f401eed0843f71bb0ee3d6b5b
Showing with 4 additions and 1 deletion.
  1. +4 −1 chain-impl-mockchain/src/state.rs
@@ -28,8 +28,11 @@ pub struct State {
pub(crate) leadership: Leadership,
}

type Error = ();

impl State {
pub fn apply(&self, content: BlockContents) -> State {
pub fn apply(&self, contents: BlockContents) -> Result<State, Error> {
for content in contents.iter() {}
unimplemented!()
}
}

0 comments on commit 2a6ddc0

Please sign in to comment.
You can’t perform that action at this time.