Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix json_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dvdplm committed Jun 11, 2018
1 parent 5d12612 commit b9f1760
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ethcore/src/json_tests/trie.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,18 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.

use ethjson;
use trie::{TrieFactory, TrieSpec};
use trie::{TrieFactory, TrieSpec, KeccakRlpNodeCodec};
use ethereum_types::H256;
use memorydb::MemoryDB;
use memorydb::KeccakMemoryDB;


fn test_trie(json: &[u8], trie: TrieSpec) -> Vec<String> {
let tests = ethjson::trie::Test::load(json).unwrap();
let factory = TrieFactory::new(trie);
let factory = TrieFactory::<_, KeccakRlpNodeCodec>::new(trie);
let mut result = vec![];

for (name, test) in tests.into_iter() {
let mut memdb = MemoryDB::new();
let mut memdb = KeccakMemoryDB::new();
let mut root = H256::default();
let mut t = factory.create(&mut memdb, &mut root);

Expand Down

0 comments on commit b9f1760

Please sign in to comment.