The "processAttestation" function contains code where it generates new context by "xCtx, commit := ctx.CacheContext()" and then uses "xCtx" for the "k.AttestationHandler.Handle" to generate a new Tx. The "k.AttestationHandler.Handle" fill the context with the Events during the execution, and then the "processAttestation" commits the state but events that were added to the "xCtx" are not moved to the "ctx" which is used later to get the events.
The "processAttestation" function contains code where it generates new context by "xCtx, commit := ctx.CacheContext()" and then uses "xCtx" for the "k.AttestationHandler.Handle" to generate a new Tx. The "k.AttestationHandler.Handle" fill the context with the Events during the execution, and then the "processAttestation" commits the state but events that were added to the "xCtx" are not moved to the "ctx" which is used later to get the events.
This PR contains the fix for that issue.