From 13177e2439ab49b88f7a52d9ef57637cc1b3cc4f Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 15 Jul 2023 15:26:17 +0800 Subject: [PATCH] 1 --- server/common/contract.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/common/contract.js b/server/common/contract.js index 03a08c5..f0dfe36 100644 --- a/server/common/contract.js +++ b/server/common/contract.js @@ -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;