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