File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ pub struct RPCStep {
144144 pub gas_cost : Hex < Gas > ,
145145 pub op : u8 ,
146146 pub pc : usize ,
147- pub memory : Option < Vec < Hex < M256 > > > ,
147+ pub memory : Option < Vec < Bytes > > ,
148148 pub stack : Option < Vec < Hex < M256 > > > ,
149149 pub storage : Option < HashMap < Hex < U256 > , Hex < M256 > > > ,
150150}
Original file line number Diff line number Diff line change @@ -376,15 +376,10 @@ pub fn replay_transaction<P: Patch>(
376376 None
377377 } else {
378378 let mut ret = Vec :: new ( ) ;
379- for i in 0 ..( if machine. state ( ) . memory . len ( ) % 32 == 0 {
380- machine. state ( ) . memory . len ( ) / 32
381- } else {
382- machine. state ( ) . memory . len ( ) / 32 + 1
383- } ) {
384- ret. push ( Hex ( machine. state ( ) . memory . read ( U256 :: from ( i) *
385- U256 :: from ( 32 ) ) ) ) ;
379+ for i in 0 ..machine. state ( ) . memory . len ( ) {
380+ ret. push ( machine. state ( ) . memory . read_raw ( U256 :: from ( i) ) ) ;
386381 }
387- Some ( ret)
382+ Some ( vec ! [ Bytes ( ret) ] )
388383 } ;
389384 let stack = if config. disable_stack {
390385 None
You can’t perform that action at this time.
0 commit comments