🔨」 fix: should be working as expected

This commit is contained in:
2025-10-07 20:39:07 +02:00
parent dfb2541267
commit fd801d267d

View File

@ -29,7 +29,7 @@ async function loadContract() {
async function callGetScore(id) { async function callGetScore(id) {
try { try {
const contract = await loadContract(); const contract = await loadContract();
const result = await contract.getScore(id); const result = await contract.getScore(id - 1);
return result; return result;
} catch (error) { } catch (error) {
console.error('Error calling view function:', error); console.error('Error calling view function:', error);