Skip to content

Commit ace3a3f

Browse files
fjllightclient
authored andcommitted
core: reformat comment
1 parent 5fccdfb commit ace3a3f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

core/state_transition.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,11 @@ func (st *stateTransition) validateAuthorization(auth *types.Authorization) (aut
544544
if err != nil {
545545
return authority, fmt.Errorf("%w: %v", ErrAuthorizationInvalidSignature, err)
546546
}
547-
// Check the authority account 1) doesn't have code or has exisiting
548-
// delegation 2) matches the auth's nonce
547+
// Check the authority account
548+
// 1) doesn't have code or has exisiting delegation
549+
// 2) matches the auth's nonce
550+
//
551+
// Note it is added to the access list even if the authorization is invalid.
549552
st.state.AddAddressToAccessList(authority)
550553
code := st.state.GetCode(authority)
551554
if _, ok := types.ParseDelegation(code); len(code) != 0 && !ok {

0 commit comments

Comments
 (0)