Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
huancheng-trili committed Sep 6, 2024
1 parent a1ed2aa commit 4d22f8f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions micheline/script.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,9 @@ func linkStorageTypeAndValue(typ Prim, values *[]Prim) map[string]storageItem {
return name
}
}
// `values` is a queue of storage values collected from the storage value primitive tree.
// Here assumes `Walk` traverses the storage code primitive tree in the same ordering.
// The head of the queue should correspond to each primitive encountered here.
_ = typ.Walk(func(p Prim) error {
switch p.OpCode {
case K_STORAGE:
Expand Down

0 comments on commit 4d22f8f

Please sign in to comment.