mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 09:53:48 +00:00
core: style improvement in applyAuthorization
This commit is contained in:
parent
0926de326e
commit
0f85021cb6
1 changed files with 3 additions and 1 deletions
|
|
@ -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{}) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue