From ace3a3f12cf7f8e37dd2f8030a5bb6699bc91609 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Mon, 2 Dec 2024 14:15:06 +0100 Subject: [PATCH] core: reformat comment --- core/state_transition.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/core/state_transition.go b/core/state_transition.go index a8b600d60f..e2f4693a10 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -544,8 +544,11 @@ func (st *stateTransition) validateAuthorization(auth *types.Authorization) (aut if err != nil { return authority, fmt.Errorf("%w: %v", ErrAuthorizationInvalidSignature, err) } - // Check the authority account 1) doesn't have code or has exisiting - // delegation 2) matches the auth's nonce + // Check the authority account + // 1) doesn't have code or has exisiting delegation + // 2) matches the auth's nonce + // + // Note it is added to the access list even if the authorization is invalid. st.state.AddAddressToAccessList(authority) code := st.state.GetCode(authority) if _, ok := types.ParseDelegation(code); len(code) != 0 && !ok {