@@ -453,13 +453,13 @@ fn test_geth_jstracer_op_gascost() {
453
453
caller : deployer,
454
454
gas_limit : 1000000 ,
455
455
transact_to : TransactTo :: Call ( addr) ,
456
- data : "0xfebb0f7e" . into ( ) , // call bar
456
+ data : hex ! ( "febb0f7e" ) . into ( ) , // call bar
457
457
..Default :: default ( )
458
458
} ,
459
459
) ;
460
460
let mut insp = JsInspector :: new ( code. to_string ( ) , serde_json:: Value :: Null ) . unwrap ( ) ;
461
461
let ( res, _) = inspect ( & mut db, env. clone ( ) , & mut insp) . unwrap ( ) ;
462
- assert ! ( res. result. is_success( ) ) ;
462
+ assert ! ( ! res. result. is_success( ) ) ;
463
463
464
464
let result = insp. json_result ( res, & env, & db) . unwrap ( ) ;
465
465
@@ -471,10 +471,6 @@ fn test_geth_jstracer_op_gascost() {
471
471
{ "op" : "R" , "depth" : 1 , "offset" : "64" , "gasCost" : 3 , "memorySize" : 96 } ,
472
472
{ "op" : "W" , "depth" : 1 , "offset" : "128" , "gasCost" : 9 , "memorySize" : 96 } ,
473
473
{ "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 } ,
478
474
{ "op" : "R" , "depth" : 1 , "offset" : "64" , "gasCost" : 3 , "memorySize" : 160 } ,
479
475
{ "op" : "W" , "depth" : 1 , "offset" : "128" , "gasCost" : 3 , "memorySize" : 160 } ,
480
476
{ "op" : "W" , "depth" : 1 , "offset" : "132" , "gasCost" : 6 , "memorySize" : 160 } ,
0 commit comments