Skip to content

Commit

Permalink
node_aux empty if not existant
Browse files Browse the repository at this point in the history
  • Loading branch information
volodymyr-basiuk committed Nov 18, 2024
1 parent 0657c03 commit 9f041ef
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions verifiable/did_doc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"encoding/json"
"testing"

"github.com/iden3/go-merkletree-sql/v2"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -77,11 +76,7 @@ func TestGistInfoProof_JSON_Unmarshal_Marshal(t *testing.T) {
"0",
"0",
"0"
],
"node_aux": {
"key": "0",
"value": "0"
}
]
}`

var proof GistInfoProof
Expand All @@ -90,7 +85,7 @@ func TestGistInfoProof_JSON_Unmarshal_Marshal(t *testing.T) {
require.Equal(t, Iden3SparseMerkleTreeProofType, proof.Type)
require.Equal(t, true, proof.Existence)
require.Len(t, proof.Proof.AllSiblings(), 64)
require.Equal(t, &merkletree.HashZero, proof.NodeAux.Key)
require.Nil(t, proof.Proof.NodeAux)

marshaled, err := proof.MarshalJSON()
require.NoError(t, err)
Expand Down

0 comments on commit 9f041ef

Please sign in to comment.