diff --git a/libs/remix-simulator/test/blocks.ts b/libs/remix-simulator/test/blocks.ts index e0eb39d6c9c..bef45cd4915 100644 --- a/libs/remix-simulator/test/blocks.ts +++ b/libs/remix-simulator/test/blocks.ts @@ -11,7 +11,7 @@ describe('blocks', () => { }) await provider.init() web3.setProvider(provider as any) - }) + }) describe('eth_getBlockByNumber', () => { it('should get block given its number', async () => { @@ -40,7 +40,7 @@ describe('blocks', () => { assert.deepEqual(block, expectedBlock) }) - }) + }) describe('eth_getGasPrice', () => { it('should get gas price', async () => { @@ -63,6 +63,17 @@ describe('blocks', () => { }) }) + describe('evm_mine', () => { + it('should mine empty block using evm_mine', async function () { + await web3.provider.request({ + method: 'evm_mine', + params: [{ blocks: 3 }], + }) + const number = await web3.eth.getBlockNumber() + assert.equal(number, 3) + }) + }) + describe('eth_getBlockByHash', () => { it('should get block given its hash', async () => { const correctBlock = await web3.eth.getBlock(0)