This commit is contained in:
aozhiwei 2024-06-12 17:10:11 +08:00
parent 74fef65569
commit 586ae84de0
2 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class Transfer extends BaseEventProcess {
tokenId
);
}
await this.update721NftOwner(tokenId, this.getContractAddress(), to);
await this.update721NftOwner(tokenId, this.getContractAddress(), to, from);
await this.markOk();
}

View File

@ -362,7 +362,7 @@ class BaseEventProcess {
}
}
async update721NftOwner(tokenId, contractAddress, ownerAddress) {
async update721NftOwner(tokenId, contractAddress, ownerAddress, lastOwnerAddress) {
const logHead = this.genLogHead(' update721NftOwner ');
const {err} = await this.bcNftDbConn(
'update',
@ -374,6 +374,7 @@ class BaseEventProcess {
],
[
['owner_address', bcutils.toNormalAddress(ownerAddress)],
['last_owner_address', bcutils.toNormalAddress(lastOwnerAddress)],
]
);
if (err) {