From 5eb44a6c7d50fa97c6cfaddbfcb82e3abe0aa8ba Mon Sep 17 00:00:00 2001 From: Noah Saso Date: Wed, 13 Nov 2024 13:23:38 -0500 Subject: [PATCH] fixed types --- .../stateful/actions/core/actions/BurnNft/index.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/packages/stateful/actions/core/actions/BurnNft/index.tsx b/packages/stateful/actions/core/actions/BurnNft/index.tsx index a5feb7f11..4b6d18ce8 100644 --- a/packages/stateful/actions/core/actions/BurnNft/index.tsx +++ b/packages/stateful/actions/core/actions/BurnNft/index.tsx @@ -173,12 +173,14 @@ export class BurnNftAction extends ActionBase { // All messages must be burns for this to match. Otherwise, we may match // a cross-chain execute and accidentally conceal other messages. - const allAreBurns = burns.every((b) => !!b) - - return allAreBurns + return burns.every(Boolean) ? { isWrapped, - burns, + burns: burns as { + chainId: string + collection: any + tokenId: any + }[], } : null }