This commit is contained in:
aozhiwei 2023-07-15 15:26:17 +08:00
parent b7e230d514
commit 13177e2439

View File

@ -14,6 +14,7 @@ const BENftMarket_INSTANCE_NAME = 'BENftMarket';
const BENftMall_INSTANCE_NAME = 'BENftMall';
const GameItemMarket_INSTANCE_NAME = 'GameItemMarket';
const GameItemMall_INSTANCE_NAME = 'GameItemMall';
const Genesis_INSTANCE_NAME = 'Genesis';
function getNftNameByTokenType(tokenType) {
switch (Number(tokenType)) {
@ -37,6 +38,11 @@ function getNftNameByTokenType(tokenType) {
return Gacha_INSTANCE_NAME;
}
break;
case bcconst.BC_NFT_GENESIS:
{
return Genesis_INSTANCE_NAME;
}
break;
default:
{
return '';
@ -58,5 +64,6 @@ exports.BENftMarket_INSTANCE_NAME = BENftMarket_INSTANCE_NAME;
exports.BENftMall_INSTANCE_NAME = BENftMall_INSTANCE_NAME;
exports.GameItemMarket_INSTANCE_NAME = GameItemMarket_INSTANCE_NAME;
exports.GameItemMall_INSTANCE_NAME = GameItemMall_INSTANCE_NAME;
exports.Genesis_INSTANCE_NAME = Genesis_INSTANCE_NAME;
exports.getNftNameByTokenType = getNftNameByTokenType;