Skip to content

Commit

Permalink
Merge pull request #799 from onflow/m4ksio/epoch-service-events
Browse files Browse the repository at this point in the history
Epoch service events
  • Loading branch information
m4ksio committed Jun 18, 2021
2 parents 0fc3314 + 5fa293a commit 774a8ac
Show file tree
Hide file tree
Showing 8 changed files with 1,741 additions and 7 deletions.
3 changes: 2 additions & 1 deletion engine/execution/ingestion/engine.go
Expand Up @@ -20,6 +20,7 @@ import (
"github.com/onflow/flow-go/engine/execution/state"
"github.com/onflow/flow-go/engine/execution/state/delta"
"github.com/onflow/flow-go/engine/execution/utils"
"github.com/onflow/flow-go/model/convert"
"github.com/onflow/flow-go/model/flow"
"github.com/onflow/flow-go/model/flow/filter"
"github.com/onflow/flow-go/module"
Expand Down Expand Up @@ -1194,7 +1195,7 @@ func (e *Engine) generateExecutionResultForBlock(
// convert Cadence service event representation to flow-go representation
convertedServiceEvents := make([]flow.ServiceEvent, 0, len(serviceEvents))
for _, event := range serviceEvents {
converted, err := flow.ConvertServiceEvent(event)
converted, err := convert.ServiceEvent(event)
if err != nil {
return nil, fmt.Errorf("could not convert service event: %w", err)
}
Expand Down
1,197 changes: 1,197 additions & 0 deletions model/convert/fixtures.go

Large diffs are not rendered by default.

0 comments on commit 774a8ac

Please sign in to comment.