aboutsummaryrefslogtreecommitdiffstats
path: root/test/utils/rpc.ts
diff options
context:
space:
mode:
Diffstat (limited to 'test/utils/rpc.ts')
-rw-r--r--test/utils/rpc.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/utils/rpc.ts b/test/utils/rpc.ts
index f28a85340..299e72e79 100644
--- a/test/utils/rpc.ts
+++ b/test/utils/rpc.ts
@@ -26,6 +26,12 @@ export class RPC {
const didRevert = await this.sendAsync(payload);
return didRevert;
}
+ public async mineBlockAsync(): Promise<void> {
+ const method = 'evm_mine';
+ const params: any[] = [];
+ const payload = this.toPayload(method, params);
+ await this.sendAsync(payload);
+ }
private toPayload(method: string, params: any[] = []): string {
const payload = JSON.stringify({
id: this.id,