Skip to content

Commit

Permalink
fixup! feat(sendAnywhere): handle failed IBC transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Aug 16, 2024
1 parent 18e1e1e commit c537e65
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/orchestration/src/examples/sendAnywhere.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,7 @@ export const sendIt = async (
const { chainId } = info;
assert(typeof chainId === 'string', 'bad chainId');

try {
await localTransfer(seat, contractState.localAccount, give);
} catch (e) {
// FIXME do we need to recover funds from tempSeat?
return seat.fail(Fail`Local transfer failed ${q(e)}`);
}
await localTransfer(seat, contractState.localAccount, give);

try {
await contractState.localAccount.transfer(
Expand Down

0 comments on commit c537e65

Please sign in to comment.