From c3d68a3a3223c6b084c70e9799e7c85253638264 Mon Sep 17 00:00:00 2001 From: CounterFire2023 <136581895+CounterFire2023@users.noreply.github.com> Date: Thu, 18 Apr 2024 12:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=9A=84=E6=97=B6=E5=80=99?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=8B=E8=AF=95=E7=9A=84role?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/nft.controller.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/controllers/nft.controller.ts b/src/controllers/nft.controller.ts index 6ea19ca..a54bb9c 100644 --- a/src/controllers/nft.controller.ts +++ b/src/controllers/nft.controller.ts @@ -19,6 +19,17 @@ const nftList = sourceList.map(o => { tier: o['TIER'] == 'Tier 2' ? 2 : 1, } }) +if (process.env.NODE_ENV !== 'production') { + nftList.unshift({ + projectName: 'Test', + link: 'https://x.com/sparky-chain', + contract: '0x50A8e60041A206AcaA5F844a1104896224be6F39', + collection: 'Test Collection', + guild: '1222509817411665920', + role: '1229658972793999391', + tier: 2, + }) +} const nftListStr = JSON.stringify(nftList) const nftMap = new Map() nftList.forEach(o => nftMap.set(o.contract.toLowerCase(), o))