diff --git a/connect/src/protocols/tokenTransfer.ts b/connect/src/protocols/tokenTransfer.ts index 355638c87..c512955e3 100644 --- a/connect/src/protocols/tokenTransfer.ts +++ b/connect/src/protocols/tokenTransfer.ts @@ -395,6 +395,9 @@ export class TokenTransfer wh: Wormhole, transfer: TokenTransferDetails, ): Promise { + if (transfer.from.chain === transfer.to.chain) + throw new Error("Cannot transfer to the same chain"); + if (transfer.payload && transfer.automatic) throw new Error("Payload with automatic delivery is not supported");