1
This commit is contained in:
parent
107d65fde0
commit
042a88d88a
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user