merkletree: use non-pointer receiver for MarshalJSON
This commit is contained in:
parent
ec5c63cf1a
commit
70e05ea7b0
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue