Skip to content

Commit dd07018

Browse files
committed
variable name change
1 parent 4ad3f61 commit dd07018

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/state_transition.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ func (st *stateTransition) applyAuthorization(auth *types.SetCodeAuthorization)
616616
st.state.AddRefund(params.CallNewAccountGas - params.TxAuthTupleGas)
617617
}
618618

619-
prevDelegation, isDelegated := types.ParseDelegation(st.state.GetCode(authority))
619+
prevAuthority, isDelegated := types.ParseDelegation(st.state.GetCode(authority))
620620

621621
// Update nonce and account code.
622622
st.state.SetNonce(authority, auth.Nonce+1, tracing.NonceChangeAuthorization)
@@ -629,7 +629,7 @@ func (st *stateTransition) applyAuthorization(auth *types.SetCodeAuthorization)
629629
}
630630

631631
// install delegation to auth.Address if the delegation changed
632-
if !isDelegated || auth.Address != prevDelegation {
632+
if !isDelegated || auth.Address != prevAuthority {
633633
st.state.SetCode(authority, types.AddressToDelegation(auth.Address), tracing.CodeChangeAuthorization)
634634
}
635635

0 commit comments

Comments
 (0)