fixed failing builin test

This commit is contained in:
debris 2016-03-18 20:17:25 +01:00 committed by arkpar
parent 32cc0bddf6
commit c5a4993e39

View File

@ -274,7 +274,7 @@ fn from_named_linear() {
#[test] #[test]
fn from_json() { fn from_json() {
let text = "{ \"name\": \"identity\", \"linear\": {\"base\": 10, \"word\": 20} }"; let text = "{ \"name\": \"identity\", \"pricing\": {\"base\": 10, \"word\": 20} }";
let json = Json::from_str(text).unwrap(); let json = Json::from_str(text).unwrap();
let b = Builtin::from_json(&json).unwrap(); let b = Builtin::from_json(&json).unwrap();
assert_eq!((*b.cost)(0), U256::from(10)); assert_eq!((*b.cost)(0), U256::from(10));