🔨」 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) {
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);