Skip to content

Commit

Permalink
test(geth): fix it
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa committed Oct 11, 2024
1 parent 9cde389 commit e7a379f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/it/geth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,13 +453,13 @@ fn test_geth_jstracer_op_gascost() {
caller: deployer,
gas_limit: 1000000,
transact_to: TransactTo::Call(addr),
data: "0xfebb0f7e".into(), // call bar
data: hex!("febb0f7e").into(), // call bar
..Default::default()
},
);
let mut insp = JsInspector::new(code.to_string(), serde_json::Value::Null).unwrap();
let (res, _) = inspect(&mut db, env.clone(), &mut insp).unwrap();
assert!(res.result.is_success());
assert!(!res.result.is_success());

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

Expand All @@ -471,10 +471,6 @@ fn test_geth_jstracer_op_gascost() {
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 96 },
{ "op": "W", "depth": 1, "offset": "128", "gasCost": 9, "memorySize": 96 },
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 160 },
{ "op": "W", "depth": 2, "offset": "64", "gasCost": 12, "memorySize": 0 },
{ "op": "R", "depth": 2, "offset": "64", "gasCost": 3, "memorySize": 96 },
{ "op": "W", "depth": 2, "offset": "128", "gasCost": 9, "memorySize": 96 },
{ "op": "R", "depth": 2, "offset": "64", "gasCost": 3, "memorySize": 160 },
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 160 },
{ "op": "W", "depth": 1, "offset": "128", "gasCost": 3, "memorySize": 160 },
{ "op": "W", "depth": 1, "offset": "132", "gasCost": 6, "memorySize": 160 },
Expand Down

0 comments on commit e7a379f

Please sign in to comment.