fixed failing builin test
This commit is contained in:
parent
32cc0bddf6
commit
c5a4993e39
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user