Skip to content

Commit 279cc2c

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

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tests/it/geth.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,4 +445,19 @@ fn test_geth_jstracer_revert() {
445445

446446
// reverted operation
447447
assert!(result["error"].as_bool().unwrap());
448+
assert_eq!(
449+
result["data"],
450+
serde_json::json!([
451+
{ "op": "W", "depth": 1, "offset": "64", "gasCost": 12, "memorySize": 0 },
452+
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 96 },
453+
{ "op": "W", "depth": 1, "offset": "128", "gasCost": 9, "memorySize": 96 },
454+
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 160 },
455+
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 160 },
456+
{ "op": "W", "depth": 1, "offset": "128", "gasCost": 3, "memorySize": 160 },
457+
{ "op": "W", "depth": 1, "offset": "132", "gasCost": 6, "memorySize": 160 },
458+
{ "op": "W", "depth": 1, "offset": "164", "gasCost": 6, "memorySize": 192 },
459+
{ "op": "W", "depth": 1, "offset": "196", "gasCost": 6, "memorySize": 224 },
460+
{ "op": "R", "depth": 1, "offset": "64", "gasCost": 3, "memorySize": 256 }
461+
])
462+
);
448463
}

0 commit comments

Comments
 (0)