This commit is contained in:
aozhiwei 2023-07-11 17:31:36 +08:00
parent 3462b7542e
commit fb1a72bec0
2 changed files with 5 additions and 2 deletions

View File

@ -68,6 +68,8 @@ class Activate721Nft extends BaseEventProcess {
['owner_address', bcutils.toNormalAddress(owner)],
['creator_address', bcutils.toNormalAddress(owner)],
['confirm_block_number', this.getBlockNumber()],
['net_id', this.getNetId()],
['contract_address', this.getContractAddress()],
['createtime', nowTime],
['modifytime', nowTime],
];
@ -83,6 +85,7 @@ class Activate721Nft extends BaseEventProcess {
],
fieldList
);
console.log(this.getNetId(), this.getContractAddress());
if (err) {
this.throwError('mintNft transId:' + transId);
}

View File

@ -68,7 +68,7 @@ class BaseEventProcess {
throwError(err) {
const errMsg = this.genLogHead(err);
throw errMsg;
throw new Error(errMsg);
}
async markOk() {
@ -185,7 +185,7 @@ class BaseEventProcess {
async gameDbConn(method, ...args) {
if (!this.gameConn) {
const {err, conn} = await app.getDbConn(constant.BCNFTDB_NAME);
const {err, conn} = await app.getDbConn(constant.GAMEDB_NAME);
if (err) {
return {
'err': err,