Skip to content

Commit 5fa5b9e

Browse files
committed
connect: solana cctp redeem fix
The mintRecipient is the ATA which we were incorrectly passing to the redeem method. Pass the sender instead.
1 parent d752640 commit 5fa5b9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

connect/src/routes/cctp/manual.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,8 @@ export class CCTPRoute<N extends Network>
173173

174174
const toChain = this.wh.getChain(receipt.to);
175175
const cb = await toChain.getCircleBridge();
176-
const xfer = cb.redeem(message.payload.mintRecipient, message, attestation);
176+
const sender = Wormhole.parseAddress(signer.chain(), signer.address());
177+
const xfer = cb.redeem(sender, message, attestation);
177178
const dstTxids = await signSendWait<N, Chain>(toChain, xfer, signer);
178179
return {
179180
...receipt,

0 commit comments

Comments
 (0)