diff --git a/backend/api/src/create-answer-cpmm.ts b/backend/api/src/create-answer-cpmm.ts index d366d223a0..d8f1b7271c 100644 --- a/backend/api/src/create-answer-cpmm.ts +++ b/backend/api/src/create-answer-cpmm.ts @@ -81,10 +81,7 @@ const verifyContract = async (contractId: string, creatorId: string) => { const contract = await getContractSupabase(contractId) if (!contract) throw new APIError(404, 'Contract not found') if (contract.token !== 'MANA') { - throw new APIError( - 403, - 'Must add answer to the mana version of the contract' - ) + throw new APIError(403, 'Cannot add answers to sweepstakes question') } if (contract.mechanism !== 'cpmm-multi-1') throw new APIError(403, 'Requires a cpmm multiple choice contract') diff --git a/backend/shared/src/create-cash-contract.ts b/backend/shared/src/create-cash-contract.ts index 824f98aae3..7bb3c6bd53 100644 --- a/backend/shared/src/create-cash-contract.ts +++ b/backend/shared/src/create-cash-contract.ts @@ -67,10 +67,10 @@ export async function createCashContractMain( let answers: Answer[] = [] if (manaContract.outcomeType === 'MULTIPLE_CHOICE') { - if (manaContract.addAnswersMode === 'ANYONE') + if (manaContract.addAnswersMode !== 'DISABLED') throw new APIError( 400, - `Cannot make sweepstakes question for free response contract` + `Cannot add answers to multi sweepstakes question` ) answers = await getAnswersForContract(tx, manaContractId)