Skip to content

fix(escrow): wire TrustFlowEscrowClient contract methods to invokeContract and readContractState - #843

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

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

Conversation

@jeffrey-graham

Copy link
Copy Markdown

Closes #596

Summary

  • Wires TrustFlowEscrowClient.createEscrow, claim, fund, and releaseEscrow in src/escrow/client.ts to invoke the Soroban contract via invokeContract (and encodes release arguments via buildReleaseArgs).
  • Wires TrustFlowEscrowClient.getEscrow to query contract state via readContractState and surfaces RPC/contract failures as { ok: false, error }.
  • Updates tests/escrow-client.test.ts to verify both contract invocation and { ok: false } error propagation across all escrow methods.

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.

TrustFlowEscrowClient.createEscrow/claim/fund/releaseEscrow (src/escrow/client.ts) never invoke the contract

1 participant