mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
remove dead code
This commit is contained in:
parent
8e779a171e
commit
83ce375588
@ -15,22 +15,6 @@ export default abstract class ContractBase {
|
||||
this.contractName = contractName
|
||||
}
|
||||
|
||||
/*
|
||||
public async listenToEventOnce(eventName: string, options: any): Promise<any> {
|
||||
return new Promise<any>((resolve, reject) => {
|
||||
if (!this.contract.events[eventName]) {
|
||||
throw new Error(`Event ${eventName} not found on contract ${this.contractName}`)
|
||||
}
|
||||
this.contract.events[eventName](options, (err) => {
|
||||
reject(err)
|
||||
})
|
||||
.on("data", (eventData: any) => {
|
||||
resolve(eventData)
|
||||
})
|
||||
})
|
||||
}
|
||||
*/
|
||||
|
||||
public async getEventData(eventName: any, options: any): Promise<Event[]> {
|
||||
if (!this.contract.events[eventName]) {
|
||||
throw new Error(`Event "${eventName}" not found on contract "${this.contractName}"`)
|
||||
|
Loading…
Reference in New Issue
Block a user