Skip to content

Commit

Permalink
adjusting legacy merkles
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMarstonConnell committed Jun 28, 2024
1 parent b69c02b commit 2091ad2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/upgrades/v4/upgrades.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ type FidContents struct {
}

type MerkleContents struct {
Merkles [][]byte `json:"merkles"`
Merkles [][]byte `json:"legacyMerkles"`
}

func UpdateFileTree(ctx sdk.Context, fk *filetreemodulekeeper.Keeper, merkleMap map[string][]byte) {
Expand Down Expand Up @@ -87,6 +87,16 @@ func UpdateFileTree(ctx sdk.Context, fk *filetreemodulekeeper.Keeper, merkleMap

}

/**
{
"fids": ["fid1", "fid2", "fid3"]
}
{
"legacyMerkles": ["merkle1", "merkle2", "merkle3"]
}
*/

merkleContents := MerkleContents{Merkles: merkles}

merkleContentBytes, err := json.Marshal(merkleContents)
Expand Down

0 comments on commit 2091ad2

Please sign in to comment.