Several mainnet utility scripts still call market-core.create-market with only three arguments, but the contract now requires question, end-date, resolution-date, and category.
Affected scripts:
scripts/bulk-create-markets.ts
scripts/market-lifecycle.ts
scripts/stress-test.ts
scripts/interact-contract.ts
Evidence:
contracts/market-core.clar defines create-market as (question, end-date, resolution-date, category).
- Each of the scripts above still passes only three arguments.
Impact:
- The transaction call will fail at broadcast time or contract execution time.
- Bulk market creation and lifecycle/stress scripts cannot create markets successfully against the current contract ABI.
Reproduction:
- Run one of the scripts that creates a market, e.g.
npm run bulk-markets or npm run interact.
- Inspect the constructed contract call.
- The call omits the required
category Clarity argument.
Priority: High
Suggested scope:
Update every create-market caller to include the category value expected by the contract, and add coverage so this does not regress.
Several mainnet utility scripts still call
market-core.create-marketwith only three arguments, but the contract now requiresquestion,end-date,resolution-date, andcategory.Affected scripts:
scripts/bulk-create-markets.tsscripts/market-lifecycle.tsscripts/stress-test.tsscripts/interact-contract.tsEvidence:
contracts/market-core.clardefinescreate-marketas(question, end-date, resolution-date, category).Impact:
Reproduction:
npm run bulk-marketsornpm run interact.categoryClarity argument.Priority: High
Suggested scope:
Update every
create-marketcaller to include the category value expected by the contract, and add coverage so this does not regress.