diff --git a/server/common/contract.js b/server/common/contract.js index f3ec853..03a08c5 100644 --- a/server/common/contract.js +++ b/server/common/contract.js @@ -22,6 +22,11 @@ function getNftNameByTokenType(tokenType) { return HERO_INSTANCE_NAME; } break; + case bcconst.BC_NFT_EQUIP: + { + return WEAPON_INSTANCE_NAME; + } + break; case bcconst.BC_NFT_CHIP: { return CHIP_INSTANCE_NAME; diff --git a/server/web3dbspider/services/events/UserMinterFactory/activate721nft.js b/server/web3dbspider/services/events/UserMinterFactory/activate721nft.js index 280585b..054b96d 100644 --- a/server/web3dbspider/services/events/UserMinterFactory/activate721nft.js +++ b/server/web3dbspider/services/events/UserMinterFactory/activate721nft.js @@ -62,7 +62,8 @@ class Activate721Nft extends BaseEventProcess { } const contractAddress = this.getContractAddressByName(contract.getNftNameByTokenType(tokenType)); if (!contractAddress) { - this.throwError('error error contractAddress transId:' + transId); + this.throwError('error error contractAddress transId:' + transId + ' tokenType:' + + tokenType); return; } await this.updateGameDbInfo(transId, itemUniId, itemId, tokenId, tokenType); @@ -91,7 +92,6 @@ class Activate721Nft extends BaseEventProcess { ], fieldList ); - console.log(fieldList); if (err) { this.throwError('mintNft transId:' + transId); }