Skip to content

[Bug] Demo app seed data claims milestone outcomes that never happened on-chain #146

Description

@collinsezedike

Summary

demos/freelance-escrow/src/data/jobs.ts's seed jobs include milestones marked status: "released" (e.g. job-1-m1, job-3-m1) with no assertionId set. That status is only ever supposed to be reached by a real assert_outcome -> finalize/resolve sequence against the live contract (see JobsContext.tsx's voteOnMilestone/finalizeMilestone), but these seed entries never went through it. The app ships presenting fabricated outcomes as if they were real activity.

Scope

  • Remove hardcoded terminal statuses (released, disputed, returned, submitted) from seed data. Seed milestones should start at in_progress only, since that's the one status that doesn't imply a contract interaction happened.
  • Keep the seed jobs themselves (titles, descriptions, client/freelancer names) as realistic placeholder content, only the fabricated outcomes are the problem.

Proposed approach

Edit the milestones arrays in src/data/jobs.ts so every entry has status: "in_progress" and no submittedAt/assertionId. Any further-along milestone state a visitor sees should come from actually calling submitMilestone/disputeMilestone/voteOnMilestone/finalizeMilestone in their own session, not from the seed file.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingeasySmall, low-risk change

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions