Skip to content

Commit 06e22a1

Browse files
committed
add comments about different return of applyAuthorization
1 parent 6665460 commit 06e22a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/state_transition.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,9 @@ func (st *StateTransition) TransitionDb() (*ExecutionResult, error) {
413413
st.state.SetNonce(msg.From(), st.state.GetNonce(sender.Address())+1)
414414

415415
// Apply EIP-7702 authorizations.
416+
// Different from the upstream implementation, applyAuthorization returns results of type types.AuthorizationResult
417+
// to record the outcomes of the authorization application process.
418+
// These results are used to trace the account states in the Tracer's CaptureStart hook.
416419
var authorizationResults []types.AuthorizationResult
417420
if msg.SetCodeAuthorizations() != nil {
418421
for _, auth := range st.msg.SetCodeAuthorizations() {

0 commit comments

Comments
 (0)