ESCROW_MILESTONE_UPDATE_NOT_ALLOWED_WITH_FUNDS
Milestones cannot be added or edited while the escrow holds funds; the balance must be zero.
409 Conflict · escrow contract error · multi-release v2, single-release v2
Example
{
"type": "https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/errors/escrow-milestone-update-not-allowed-with-funds",
"title": "Conflict",
"status": 409,
"code": "ESCROW_MILESTONE_UPDATE_NOT_ALLOWED_WITH_FUNDS",
"detail": "Milestones cannot be added or edited while the escrow holds funds; the balance must be zero (release, resolve or withdraw first).",
"instance": "/…",
"traceId": "…"
}When it happens
Simulation of the transaction fails on-chain with this contract error: Milestones cannot be added or edited while the escrow holds funds; the balance must be zero (release, resolve or withdraw first).
How to fix it
Bring the escrow balance to zero first (release, resolve the dispute, or withdraw), then manage its milestones.