diff --git a/packages/nextjs/contracts/lib.ts b/packages/nextjs/contracts/lib.ts index 3f38118..6529ec6 100644 --- a/packages/nextjs/contracts/lib.ts +++ b/packages/nextjs/contracts/lib.ts @@ -62,15 +62,14 @@ export class TriviaFactoryService { public createTrivia( questions: Array, correct_answers: Array, - reward: number | string | bigint, ): TransactionBuilder<{ ok: number } | { err: string }> { if (!this._program.programId) throw new Error("Program ID is not set"); return new TransactionBuilder<{ ok: number } | { err: string }>( this._program.api, this._program.registry, "send_message", - ["TriviaFactory", "CreateTrivia", questions, correct_answers, reward], - "(String, String, Vec, Vec, u128)", + ["TriviaFactory", "CreateTrivia", questions, correct_answers], + "(String, String, Vec, Vec)", "Result", this._program.programId, );