1
This commit is contained in:
parent
056f01465b
commit
b8ec552aee
@ -33,7 +33,7 @@ class Activate721Nft extends BaseEventProcess {
|
||||
|
||||
const params = bcutils.extractParamsFromTransId(transId);
|
||||
if (!params || params.length != 3) {
|
||||
this.throwError(' error transId:' + transId);
|
||||
this.throwError(' error transId:' + utils.jsonEncode(returnValues));
|
||||
return;
|
||||
}
|
||||
const itemUniId = params[0];
|
||||
@ -51,12 +51,12 @@ class Activate721Nft extends BaseEventProcess {
|
||||
async mintNft(transId, owner, tokenId, itemUniId, itemId) {
|
||||
const itemMeta = metaFactory.getMetaByKey('Item', itemId);
|
||||
if (!itemMeta) {
|
||||
this.throwError('activate721nft error transId:1');
|
||||
this.throwError('error transId: itemId:' + itemId);
|
||||
return;
|
||||
}
|
||||
const tokenType = itemMeta.getNftType();
|
||||
if (tokenType == bcconst.BC_NFT_NONE) {
|
||||
this.throwError('activate721nft error transId:2');
|
||||
this.throwError('error transId:2');
|
||||
return;
|
||||
}
|
||||
await this.updateGameDbInfo(transId, itemUniId, itemId, tokenId, tokenType);
|
||||
|
Loading…
x
Reference in New Issue
Block a user