From e7e466861d04b365c0aeabec82f63d89a16a62aa Mon Sep 17 00:00:00 2001 From: vmidyllic <74898029+vmidyllic@users.noreply.github.com> Date: Tue, 27 Aug 2024 17:45:07 +0300 Subject: [PATCH] fix --- src/lib/merkletree/proof.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/merkletree/proof.ts b/src/lib/merkletree/proof.ts index 6e65027..23c8f1d 100644 --- a/src/lib/merkletree/proof.ts +++ b/src/lib/merkletree/proof.ts @@ -99,7 +99,7 @@ export class Proof { public static fromJSON(obj: ProofJSON): Proof { let nodeAux: NodeAux | undefined = undefined; - const nodeAuxJson: NodeAuxJSON | undefined = obj.node_aux ?? obj.nodeAux ?? undefined; // we keep backward compatibility and support both representations + const nodeAuxJson: NodeAuxJSON | undefined = obj.node_aux ?? obj.nodeAux; // we keep backward compatibility and support both representations if (nodeAuxJson) { nodeAux = { key: Hash.fromString(nodeAuxJson.key),