@@ -328,7 +328,7 @@ impl<Cost: CostType> Interpreter<Cost> {
328328 let contract_code = self . mem . read_slice ( init_off, init_size) ;
329329 let can_create = ext. balance ( & params. address ) ? >= endowment && ext. depth ( ) < ext. schedule ( ) . max_depth ;
330330
331- // clear return data buffer before crearing new call frame.
331+ // clear return data buffer before creating new call frame.
332332 self . return_data = ReturnData :: empty ( ) ;
333333
334334 if !can_create {
@@ -368,8 +368,7 @@ impl<Cost: CostType> Interpreter<Cost> {
368368 None
369369 } else if instruction == instructions:: STATICCALL {
370370 Some ( U256 :: zero ( ) )
371- }
372- else {
371+ } else {
373372 Some ( stack. pop_back ( ) )
374373 } ;
375374
@@ -390,11 +389,11 @@ impl<Cost: CostType> Interpreter<Cost> {
390389 if ext. is_static ( ) && value. map_or ( false , |v| !v. is_zero ( ) ) {
391390 return Err ( vm:: Error :: MutableCallInStaticContext ) ;
392391 }
393- let has_balance = ext. balance ( & params. address ) ? >= value. expect ( "value set for all but delegate call and staticcall ; qed" ) ;
392+ let has_balance = ext. balance ( & params. address ) ? >= value. expect ( "value set for all but delegate call; qed" ) ;
394393 ( & params. address , & code_address, has_balance, CallType :: Call )
395394 } ,
396395 instructions:: CALLCODE => {
397- let has_balance = ext. balance ( & params. address ) ? >= value. expect ( "value set for all but delegate call and staticcall ; qed" ) ;
396+ let has_balance = ext. balance ( & params. address ) ? >= value. expect ( "value set for all but delegate call; qed" ) ;
398397 ( & params. address , & params. address , has_balance, CallType :: CallCode )
399398 } ,
400399 instructions:: DELEGATECALL => ( & params. sender , & params. address , true , CallType :: DelegateCall ) ,
@@ -423,12 +422,12 @@ impl<Cost: CostType> Interpreter<Cost> {
423422 MessageCallResult :: Success ( gas_left, data) => {
424423 stack. push ( U256 :: one ( ) ) ;
425424 self . return_data = data;
426- Ok ( InstructionResult :: UnusedGas ( Cost :: from_u256 ( gas_left) . expect ( "Gas left cannot be greater then current one" ) ) )
425+ Ok ( InstructionResult :: UnusedGas ( Cost :: from_u256 ( gas_left) . expect ( "Gas left cannot be greater than current one" ) ) )
427426 } ,
428427 MessageCallResult :: Reverted ( gas_left, data) => {
429428 stack. push ( U256 :: zero ( ) ) ;
430429 self . return_data = data;
431- Ok ( InstructionResult :: UnusedGas ( Cost :: from_u256 ( gas_left) . expect ( "Gas left cannot be greater then current one" ) ) )
430+ Ok ( InstructionResult :: UnusedGas ( Cost :: from_u256 ( gas_left) . expect ( "Gas left cannot be greater than current one" ) ) )
432431 } ,
433432 MessageCallResult :: Failed => {
434433 stack. push ( U256 :: zero ( ) ) ;
0 commit comments