Skip to content

Commit

Permalink
explain script execution interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Gololicic committed Aug 31, 2023
1 parent 6e11157 commit 32c5011
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions engine/execution/scripts/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import (
"github.com/onflow/flow-go/state/protocol"
)

// ScriptExecutionState is a subset of the `state.ExecutionState` interface purposed to only access the state
// used for script execution and not mutate the execution state of the blockchain.
type ScriptExecutionState interface {
// NewStorageSnapshot creates a new ready-only view at the given state commitment.
NewStorageSnapshot(flow.StateCommitment) snapshot.StorageSnapshot
Expand Down

0 comments on commit 32c5011

Please sign in to comment.