Skip to content

fix(escrow): invoke release_escrow contract method in releaseEscrow - #842

Closed
jeffrey-graham wants to merge 1 commit into
trustflow-protocol:mainfrom
jeffrey-graham:fix/release-escrow-invoke-contract-597
Closed

jeffrey-graham wants to merge 1 commit into
trustflow-protocol:mainfrom
jeffrey-graham:fix/release-escrow-invoke-contract-597

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #597

Summary

  • Wires releaseEscrow in src/escrow/release.ts to encode arguments via buildReleaseArgs(params.escrowId, params.caller) and execute invokeContract(client, "release_escrow", args, params.caller).
  • Propagates contract simulation/submission failures via TrustFlowError.wrap(...) and returns the real on-chain txHash.
  • Updates tests/escrow-release-function.test.ts to verify both contract invocation and error propagation.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

src/escrow/release.ts's releaseEscrow is still a bare placeholder despite #125 claiming it was wired to real contract calls

1 participant