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;