From 3d56981c2b45ee3fad6ad27b84782834dd231363 Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 13 Nov 2024 12:27:07 -0500 Subject: [PATCH] fixed NFT matching cross-chain transfers --- .../stateful/actions/core/actions/TransferNft/index.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/stateful/actions/core/actions/TransferNft/index.tsx b/packages/stateful/actions/core/actions/TransferNft/index.tsx index 782a0a240..85356114e 100644 --- a/packages/stateful/actions/core/actions/TransferNft/index.tsx +++ b/packages/stateful/actions/core/actions/TransferNft/index.tsx @@ -253,7 +253,13 @@ export class TransferNftAction extends ActionBase { } 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 {