From a8831bb10dfaf288b266cf5c3715aa84600d09db Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 26 May 2021 11:43:52 +0200 Subject: [PATCH] fix remix-simulator unit tests --- libs/remix-simulator/test/accounts.ts | 2 +- libs/remix-simulator/test/blocks.ts | 4 ++-- libs/remix-simulator/test/misc.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/remix-simulator/test/accounts.ts b/libs/remix-simulator/test/accounts.ts index 0c36c38191..336d438380 100644 --- a/libs/remix-simulator/test/accounts.ts +++ b/libs/remix-simulator/test/accounts.ts @@ -8,7 +8,7 @@ describe('Accounts', () => { before(async function () { const provider = new Provider() await provider.init() - web3.setProvider(provider) + web3.setProvider(provider as any) }) describe('eth_getAccounts', () => { diff --git a/libs/remix-simulator/test/blocks.ts b/libs/remix-simulator/test/blocks.ts index 827c4dc726..7a78b44ed8 100644 --- a/libs/remix-simulator/test/blocks.ts +++ b/libs/remix-simulator/test/blocks.ts @@ -6,11 +6,11 @@ import * as assert from 'assert' describe('blocks', () => { before(async () => { - const provider = new Provider('vm', { + const provider = new Provider({ coinbase: '0x0000000000000000000000000000000000000001' }) await provider.init() - web3.setProvider(provider) + web3.setProvider(provider as any) }) describe('eth_getBlockByNumber', () => { diff --git a/libs/remix-simulator/test/misc.ts b/libs/remix-simulator/test/misc.ts index cf38ce8740..a339910996 100644 --- a/libs/remix-simulator/test/misc.ts +++ b/libs/remix-simulator/test/misc.ts @@ -8,7 +8,7 @@ describe('Misc', () => { before(async () => { const provider = new Provider() await provider.init() - web3.setProvider(provider) + web3.setProvider(provider as any) }) describe('web3_clientVersion', () => {