github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/model/chunks/chunks.go (about) 1 package chunks 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 ) 6 7 // ChunkListFromCommit creates a chunklist with one chunk whos final state is 8 // the commit 9 func ChunkListFromCommit(commit flow.StateCommitment) flow.ChunkList { 10 chunks := flow.ChunkList{} 11 chunk := &flow.Chunk{ 12 Index: 0, 13 EndState: commit, 14 } 15 chunks.Insert(chunk) 16 17 return chunks 18 }