This commit is contained in:
aozhiwei 2023-07-10 16:24:03 +08:00
parent 630666a140
commit 7740ecfe00
3 changed files with 24 additions and 1 deletions

View File

@ -5,6 +5,14 @@ const BaseEventProcess = require('../common/BaseEventProcess');
class Transfer extends BaseEventProcess {
async start() {
const returnValues = this.getReturnValues();
await this.add721NftRefresh
(
this.getNetId(),
this.getContractAddress(),
this.getContractName(),
returnValues['tokenId']
);
}
}

View File

@ -5,7 +5,14 @@ const BaseEventProcess = require('../common/BaseEventProcess');
class Transfer extends BaseEventProcess {
async start() {
const returnValues = this.getReturnValues();
await this.add721NftRefresh
(
this.getNetId(),
this.getContractAddress(),
this.getContractName(),
returnValues['tokenId']
);
}
}

View File

@ -32,6 +32,14 @@ class BaseEventProcess {
return this.eventProc.getNetId();
}
getContractAddress() {
return this.eventProc.getContractAddress();
}
getContractName() {
return this.eventProc.getContractName();
}
getReturnValues() {
return this.returnValues;
}