mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2026-10-16 04:40:08 +02:00
「🔨」 fix: should be working as expected
This commit is contained in:
1 file changed
+1
-1
@@ -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