core: style improvement in applyAuthorization

This commit is contained in:
Felix Lange 2024-12-02 13:02:47 +01:00 committed by lightclient
parent 0926de326e
commit 0f85021cb6
No known key found for this signature in database
GPG key ID: 75C916AFEE20183E

View file

@ -562,9 +562,11 @@ func (st *stateTransition) applyAuthorization(msg *Message, auth *types.Authoriz
// If the account already exists in state, refund the new account cost
// charged in the intrinsic calculation.
if exists := st.state.Exist(authority); exists {
if st.state.Exist(authority) {
st.state.AddRefund(params.CallNewAccountGas - params.TxAuthTupleGas)
}
// Update nonce and account code.
st.state.SetNonce(authority, auth.Nonce+1)
delegation := types.AddressToDelegation(auth.Address)
if auth.Address == (common.Address{}) {