merkletree: use non-pointer receiver for MarshalJSON

This commit is contained in:
Andrew Ayer 2023-07-02 14:32:11 -04:00
parent ec5c63cf1a
commit 70e05ea7b0
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ func (tree *CollapsedTree) Size() uint64 {
return tree.size return tree.size
} }
func (tree *CollapsedTree) MarshalJSON() ([]byte, error) { func (tree CollapsedTree) MarshalJSON() ([]byte, error) {
return json.Marshal(map[string]interface{}{ return json.Marshal(map[string]interface{}{
"nodes": tree.nodes, "nodes": tree.nodes,
"size": tree.size, "size": tree.size,