File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -952,9 +952,7 @@ impl<'a> VM<'a> {
952
952
// What to do, depending on TxResult
953
953
match tx_report. result {
954
954
TxResult :: Success => {
955
- self . next_call_frame_mut ( ) ?
956
- . stack
957
- . push ( SUCCESS_FOR_CALL ) ?;
955
+ self . next_call_frame_mut ( ) ?. stack . push ( SUCCESS_FOR_CALL ) ?;
958
956
for ( address, account_opt) in self . current_call_frame ( ) ?. cache_backup . clone ( ) {
959
957
self . next_call_frame_mut ( ) ?
960
958
. cache_backup
Original file line number Diff line number Diff line change @@ -451,7 +451,13 @@ impl<'a> VM<'a> {
451
451
}
452
452
453
453
pub fn next_call_frame_mut ( & mut self ) -> Result < & mut CallFrame , VMError > {
454
- let second_to_last_index = self . call_frames . len ( ) . checked_sub ( 2 ) . ok_or ( VMError :: Internal ( InternalError :: CouldNotAccessLastCallframe ) ) ?;
454
+ let second_to_last_index =
455
+ self . call_frames
456
+ . len ( )
457
+ . checked_sub ( 2 )
458
+ . ok_or ( VMError :: Internal (
459
+ InternalError :: CouldNotAccessLastCallframe ,
460
+ ) ) ?;
455
461
Ok ( & mut self . call_frames [ second_to_last_index] )
456
462
}
457
463
You can’t perform that action at this time.
0 commit comments