Skip to content

Commit e7a379f

Browse files
committed
test(geth): fix it
Signed-off-by: jsvisa <delweng@gmail.com>
1 parent 9cde389 commit e7a379f

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tests/it/geth.rs

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -453,13 +453,13 @@ fn test_geth_jstracer_op_gascost() {
453453
caller: deployer,
454454
gas_limit: 1000000,
455455
transact_to: TransactTo::Call(addr),
456-
data: "0xfebb0f7e".into(), // call bar
456+
data: hex!("febb0f7e").into(), // call bar
457457
..Default::default()
458458
},
459459
);
460460
let mut insp = JsInspector::new(code.to_string(), serde_json::Value::Null).unwrap();
461461
let (res, _) = inspect(&mut db, env.clone(), &mut insp).unwrap();
462-
assert!(res.result.is_success());
462+
assert!(!res.result.is_success());
463463

464464
let result = insp.json_result(res, &env, &db).unwrap();
465465

@@ -471,10 +471,6 @@ fn test_geth_jstracer_op_gascost() {
471471
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 96 },
472472
{ "op": "W", "depth": 1, "offset": "128", "gasCost": 9, "memorySize": 96 },
473473
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 160 },
474-
{ "op": "W", "depth": 2, "offset": "64", "gasCost": 12, "memorySize": 0 },
475-
{ "op": "R", "depth": 2, "offset": "64", "gasCost": 3, "memorySize": 96 },
476-
{ "op": "W", "depth": 2, "offset": "128", "gasCost": 9, "memorySize": 96 },
477-
{ "op": "R", "depth": 2, "offset": "64", "gasCost": 3, "memorySize": 160 },
478474
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 160 },
479475
{ "op": "W", "depth": 1, "offset": "128", "gasCost": 3, "memorySize": 160 },
480476
{ "op": "W", "depth": 1, "offset": "132", "gasCost": 6, "memorySize": 160 },

0 commit comments

Comments
 (0)