Skip to content

Commit

Permalink
fixed NFT matching cross-chain transfers
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Nov 13, 2024
1 parent bd263b8 commit 3d56981
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/stateful/actions/core/actions/TransferNft/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,13 @@ export class TransferNftAction extends ActionBase<TransferNftData> {
}

match(messages: ProcessedMessage[]): ActionMatch {
return this.handleMessages(messages).length
const transfers = this.handleMessages(messages)
// If wrapped cross-chain execute, only match the cross-chain execute, and
// only if all messages are transfers.
return messages[0].isCrossChain &&
transfers.length === messages[0].wrappedMessages.length
? 1
: transfers.length
}

decode(messages: ProcessedMessage[]): TransferNftData {
Expand Down

0 comments on commit 3d56981

Please sign in to comment.