测试的时候增加测试的role

This commit is contained in:
CounterFire2023 2024-04-18 12:39:21 +08:00
parent ae5bfeca59
commit c3d68a3a32

View File

@ -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))