From 70e05ea7b071692ef61da99393192ae315302404 Mon Sep 17 00:00:00 2001 From: Andrew Ayer Date: Sun, 2 Jul 2023 14:32:11 -0400 Subject: [PATCH] merkletree: use non-pointer receiver for MarshalJSON --- merkletree/collapsed_tree.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/merkletree/collapsed_tree.go b/merkletree/collapsed_tree.go index 023073b..f0966b8 100644 --- a/merkletree/collapsed_tree.go +++ b/merkletree/collapsed_tree.go @@ -85,7 +85,7 @@ func (tree *CollapsedTree) Size() uint64 { return tree.size } -func (tree *CollapsedTree) MarshalJSON() ([]byte, error) { +func (tree CollapsedTree) MarshalJSON() ([]byte, error) { return json.Marshal(map[string]interface{}{ "nodes": tree.nodes, "size": tree.size,