Skip to content

Commit

Permalink
fix(secret::nftData): token id conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadusmanuet committed Dec 16, 2024
1 parent 6070261 commit 48ae0da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/factory/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ export function ChainFactory(cp: Partial<TChainParams>): TChainFactory {
}
}
const ogNftData = await sc.nftData(
data.sourceChain === "SECRET" ? convertedTokenId : data.tokenId,
data.sourceChain === "SECRET" && data.destinationChain === "SECRET"
? convertedTokenId
: data.tokenId,
data.sourceNftContractAddress,
undefined,
);
Expand Down

0 comments on commit 48ae0da

Please sign in to comment.