handle error of 'hmy_getBlockByNumber' which is sent by TruffleProvider
pull/65/head
peekpi 4 years ago
parent 95453ee2e7
commit 9aefc978f6
  1. 4
      packages/harmony-core/src/truffleProvider.ts

@ -163,6 +163,10 @@ export class TruffleProvider extends HDNode {
callback(err);
}
const response = this.resolveResult(res);
if (response.error) {
callback(response.error);
return;
}
if (
new Unit(response.result.gasLimit)

Loading…
Cancel
Save