From 2942fccf0a7c7f3083b212a7bed5223b7db04154 Mon Sep 17 00:00:00 2001 From: adjoly Date: Mon, 18 Aug 2025 18:36:45 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix(ScoreStore?= =?UTF-8?q?):=20change=20memory=20to=20call=20data=20in=20prototype=20of?= =?UTF-8?q?=20addScore=20(closes=20#37)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/scoreStore/addTx.js | 1 - src/contract/scoreStore.sol | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/api/scoreStore/addTx.js b/src/api/scoreStore/addTx.js index b078e45..413086b 100644 --- a/src/api/scoreStore/addTx.js +++ b/src/api/scoreStore/addTx.js @@ -1,4 +1,3 @@ -import { ContractTransactionResponse } from "ethers"; import scoreDB from "../../utils/scoreDB.js"; import { callAddScore, callLastId } from "../../utils/scoreStore_contract.js"; diff --git a/src/contract/scoreStore.sol b/src/contract/scoreStore.sol index a3a2940..235d2e0 100644 --- a/src/contract/scoreStore.sol +++ b/src/contract/scoreStore.sol @@ -24,7 +24,7 @@ contract scoreStore { _; } - function addScore(string memory p1, string memory p2, uint128 p1Score, uint128 p2Score) external ownerOnly returns (uint id) { + function addScore(string calldata p1, string calldata p2, uint128 p1Score, uint128 p2Score) external ownerOnly returns (uint id) { score memory s; s.p1 = p1;