From 360e667a643a1c17cf66dbfeb02762da7678c39b Mon Sep 17 00:00:00 2001 From: debris Date: Wed, 13 Jan 2016 22:06:05 +0100 Subject: [PATCH] updated executive tests --- src/tests/executive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/executive.rs b/src/tests/executive.rs index d46c3805b..c8b916b72 100644 --- a/src/tests/executive.rs +++ b/src/tests/executive.rs @@ -168,7 +168,7 @@ fn do_json_test(json_data: &[u8]) -> Vec { let mut state = State::new_temp(); test.find("pre").map(|pre| for (addr, s) in pre.as_object().unwrap() { - let address = address_from_str(addr); + let address = Address::from(addr.as_ref()); let balance = u256_from_json(&s["balance"]); let code = bytes_from_json(&s["code"]); let _nonce = u256_from_json(&s["nonce"]); @@ -235,7 +235,7 @@ fn do_json_test(json_data: &[u8]) -> Vec { test.find("post").map(|pre| for (addr, s) in pre.as_object().unwrap() { - let address = address_from_str(addr); + let address = Address::from(addr.as_ref()); //let balance = u256_from_json(&s["balance"]); fail_unless(state.code(&address).unwrap_or(vec![]) == bytes_from_json(&s["code"]), "code is incorrect");