mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-10-13 18:44:45 +02:00
「🔨」 fix: should be working as expected
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user