ESCROW_ONLY_APPROVER_CAN_CHANGE_MILESTONE_FLAG
Only the approver can change the milestone approval flag.
403 Forbidden · escrow contract error · multi-release v1, single-release v1
Example
{
"type": "https://docs.trustlesswork.com/trustless-work/v2-en/api-rest/errors/escrow-only-approver-can-change-milestone-flag",
"title": "Forbidden",
"status": 403,
"code": "ESCROW_ONLY_APPROVER_CAN_CHANGE_MILESTONE_FLAG",
"detail": "Only the approver can change the milestone approval flag.",
"instance": "/…",
"traceId": "…"
}When it happens
Simulation of the transaction fails on-chain with this contract error: Only the approver can change the milestone approval flag.
How to fix it
Build and sign the transaction with a wallet that holds the required role on this escrow (check the escrow's roles with a read endpoint), or update the roles first.