Skip to content

Commit

Permalink
Fix things
Browse files Browse the repository at this point in the history
  • Loading branch information
austinabell committed Nov 7, 2020
1 parent edd8fad commit b6aa2b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tests/conformance_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ submodule_tests = [
"db",
"address",
"base64",
"chain",
"runtime",
"interpreter",
"num-bigint",
Expand Down Expand Up @@ -51,6 +52,7 @@ encoding = { package = "forest_encoding", path = "../../encoding", optional = tr
fil_types = { path = "../../types", optional = true }
forest_message = { path = "../../vm/message", features = ["json"], optional = true }
state_tree = { path = "../../vm/state_tree/", optional = true }
chain = { path = "../../blockchain/chain", optional = true }

[dev-dependencies]
regex = { version = "1.0" }
Expand All @@ -64,7 +66,6 @@ log = "0.4"
paramfetch = { path = "../../utils/paramfetch" }
async-std = "1.6"
forest_blocks = { path = "../../blockchain/blocks" }
chain = { path = "../../blockchain/chain" }
chain_sync = { path = "../../blockchain/chain_sync" }
statediff = { path = "../../utils/statediff" }

3 changes: 2 additions & 1 deletion tests/conformance_tests/src/tipset.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// SPDX-License-Identifier: Apache-2.0, MIT

use super::*;
use chain::ChainStore;
use fil_types::verifier::FullVerifier;
use num_bigint::ToBigInt;
use state_manager::StateManager;
Expand Down Expand Up @@ -76,7 +77,7 @@ pub fn execute_tipset(
tipset: &TipsetVector,
exec_epoch: ChainEpoch,
) -> Result<ExecuteTipsetResult, Box<dyn StdError>> {
let sm = StateManager::new(bs);
let sm = StateManager::new(Arc::new(ChainStore::new(bs)));
let mut _applied_messages = Vec::new();
let mut applied_results = Vec::new();
let (post_state_root, receipts_root) = sm.apply_blocks::<_, FullVerifier, _>(
Expand Down

0 comments on commit b6aa2b3

Please sign in to comment.