This commit is contained in:
aozhiwei 2023-07-11 19:05:31 +08:00
parent 107d65fde0
commit 042a88d88a
2 changed files with 7 additions and 2 deletions

View File

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

View File

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