@@ -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