From 9f041ef05b49c8d2b6d3190c45c533c97c68ab6e Mon Sep 17 00:00:00 2001 From: vbasiuk Date: Mon, 18 Nov 2024 15:27:42 +0200 Subject: [PATCH] node_aux empty if not existant --- verifiable/did_doc_test.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/verifiable/did_doc_test.go b/verifiable/did_doc_test.go index 03a6869..28adaf0 100644 --- a/verifiable/did_doc_test.go +++ b/verifiable/did_doc_test.go @@ -4,7 +4,6 @@ import ( "encoding/json" "testing" - "github.com/iden3/go-merkletree-sql/v2" "github.com/stretchr/testify/require" ) @@ -77,11 +76,7 @@ func TestGistInfoProof_JSON_Unmarshal_Marshal(t *testing.T) { "0", "0", "0" - ], - "node_aux": { - "key": "0", - "value": "0" - } + ] }` var proof GistInfoProof @@ -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)