mirror of
https://github.com/KeyZox71/knl_meowscendence.git
synced 2025-10-13 18:44:45 +02:00
「🔨」 fix(ScoreStore): change memory to call data in prototype of addScore (closes #37)
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import { ContractTransactionResponse } from "ethers";
|
||||
import scoreDB from "../../utils/scoreDB.js";
|
||||
import { callAddScore, callLastId } from "../../utils/scoreStore_contract.js";
|
||||
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user