🔨」 fix(ScoreStore): change memory to call data in prototype of addScore (closes #37)

This commit is contained in:
2025-08-18 18:36:45 +02:00
parent 2cd772c5b9
commit 2942fccf0a
2 changed files with 1 additions and 2 deletions

View File

@ -1,4 +1,3 @@
import { ContractTransactionResponse } from "ethers";
import scoreDB from "../../utils/scoreDB.js";
import { callAddScore, callLastId } from "../../utils/scoreStore_contract.js";

View File

@ -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;