We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6635a4f commit 11c3f62Copy full SHA for 11c3f62
connect/src/protocols/cctp/cctpTransfer.ts
@@ -221,7 +221,16 @@ export class CircleTransfer<N extends Network = Network>
221
// First try to parse out a WormholeMessage
222
// If we get one or more, we assume its a Wormhole attested
223
// transfer
224
- const msgIds: WormholeMessageId[] = await fromChain.parseTransaction(txid);
+ let msgIds: WormholeMessageId[] = [];
225
+ try {
226
+ msgIds = await fromChain.parseTransaction(txid);
227
+ } catch (e: any) {
228
+ if (e.message.includes('no bridge messages found')) {
229
+ // This means it's a Circle attestation; swallow
230
+ } else {
231
+ throw e
232
+ }
233
234
235
// If we found a VAA message, use it
236
let ct: CircleTransfer<N>;
0 commit comments