This commit is contained in:
aozhiwei 2023-07-04 16:43:26 +08:00
parent 690ba3722a
commit 8cd93a173a
2 changed files with 3 additions and 3 deletions

View File

@ -9,12 +9,12 @@
{
"contract_name": "HERO",
"event_name": "Transfer",
"init_block": 22260860
"init_block": 24792980
},
{
"contract_name": "CHIP",
"event_name": "Transfer",
"init_block": 22260860
"init_block": 26982576
}
]
}

View File

@ -60,7 +60,7 @@ class BlockChain extends BaseService {
}
async getPastEvents(contractName, eventName, ...args) {
return this.#bc[contractName + 'Instance'](eventName, ...args);
return this.#bc[contractName + 'Instance'].getPastEvents(eventName, ...args);
}
}