From fd801d267d13a1b34639d7343c05ef96f899a3da Mon Sep 17 00:00:00 2001 From: adjoly Date: Tue, 7 Oct 2025 20:39:07 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20should?= =?UTF-8?q?=20be=20working=20as=20expected?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/scoreStore_contract.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/scoreStore_contract.js b/src/utils/scoreStore_contract.js index f3e6ef2..d9f626b 100644 --- a/src/utils/scoreStore_contract.js +++ b/src/utils/scoreStore_contract.js @@ -29,7 +29,7 @@ async function loadContract() { async function callGetScore(id) { try { const contract = await loadContract(); - const result = await contract.getScore(id); + const result = await contract.getScore(id - 1); return result; } catch (error) { console.error('Error calling view function:', error);