From c6a6f6d486780ef50340cf1cd09040cc084c8ac0 Mon Sep 17 00:00:00 2001 From: Olexandr88 Date: Fri, 6 Feb 2026 16:24:45 +0200 Subject: [PATCH] fix use of undefined variable in query --- sdk/src/db.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/db.js b/sdk/src/db.js index fc3e817..3a6d7df 100644 --- a/sdk/src/db.js +++ b/sdk/src/db.js @@ -117,7 +117,7 @@ export default class DB { } async query(col_id, id, path, json) { - const val = tar[path] + const val = this.getVal(json, path) const inputs = await this.genProof({ col_id, id, json, path }) const sigs = inputs.slice(8) const params = [[sigs[12], sigs[13], ...sigs.slice(1, 6)], inputs]