From 8ffb267247a8108d2a3e0c4f5ece72175784fbfa Mon Sep 17 00:00:00 2001 From: Muhammad Usman Date: Mon, 16 Dec 2024 19:09:33 +0500 Subject: [PATCH] fix(secret): sign metadata from lock event --- src/handler/lock-listener/lock-listener.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handler/lock-listener/lock-listener.ts b/src/handler/lock-listener/lock-listener.ts index 569de02..ddb19e8 100644 --- a/src/handler/lock-listener/lock-listener.ts +++ b/src/handler/lock-listener/lock-listener.ts @@ -97,7 +97,7 @@ export async function listenEvents( // ? ev.metaDataUri // : nftDetails.metadata || ev.metaDataUri; - if (ev.sourceChain === "CASPER") { + if (ev.sourceChain === "CASPER" || data.sourceChain === "SECRET") { metadataUri = ev.metaDataUri; } else { metadataUri = nftDetails.metadata || ev.metaDataUri;