(method: string, params: any[], walletName?: string)
| 49 | } |
| 50 | |
| 51 | async asyncCall<T>(method: string, params: any[], walletName?: string) { |
| 52 | return new Promise<T>((resolve, reject) => { |
| 53 | this.callMethod(method, params, (err, data) => { |
| 54 | if (err) { |
| 55 | return reject(err); |
| 56 | } |
| 57 | return resolve(data); |
| 58 | }, walletName); |
| 59 | }); |
| 60 | } |
| 61 | |
| 62 | async getChainTip() { |
| 63 | const tips = await this.asyncCall<{ |
no test coverage detected