Reorder lines to have err check immediately after expression

This commit is contained in:
Alex Forshtat 2024-08-12 17:32:15 +02:00
parent faecd257d6
commit e6b77cb38d

View file

@ -229,13 +229,14 @@ func ApplyRip7560ValidationPhases(chainConfig *params.ChainConfig, bc ChainConte
return nil, resultAccountValidation.Err
}
aad, err := validateAccountEntryPointCall(epc)
if err != nil {
return nil, err
}
// clear the EntryPoint calls array after parsing
epc.err = nil
epc.Input = nil
if err != nil {
return nil, err
}
err = validateValidityTimeRange(header.Time, aad.ValidAfter.Uint64(), aad.ValidUntil.Uint64())
if err != nil {
return nil, err