diff --git a/core/state_transition.go b/core/state_transition.go index 676ae22d43..223169747b 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -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{}) {