From 48977a8cc5ed10d3fd3daff2c0cd1359e71cf98c Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 8 Sep 2022 11:11:14 +0200 Subject: [PATCH] fix unit tests --- libs/remix-simulator/test/blocks.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libs/remix-simulator/test/blocks.ts b/libs/remix-simulator/test/blocks.ts index 47e7f8ba9e..5ffb448070 100644 --- a/libs/remix-simulator/test/blocks.ts +++ b/libs/remix-simulator/test/blocks.ts @@ -212,13 +212,13 @@ describe('blocks', () => { let storage = await web3.eth.getStorageAt(contractInstance.options.address, 0) assert.deepEqual(storage, '0x64') - await contractInstance.methods.set(200).send({ from: accounts[0], gas: 400000 }) + await contractInstance.methods.set(200).send({ from: accounts[0].toLowerCase(), gas: 400000 }) storage = await web3.eth.getStorageAt(contractInstance.options.address, 0) - assert.deepEqual(storage, '0x64') + assert.deepEqual(storage, '0xc8') - await contractInstance.methods.set(200).send({ from: accounts[0], gas: 400000 }) + await contractInstance.methods.set(1).send({ from: accounts[0].toLowerCase(), gas: 400000 }) storage = await web3.eth.getStorageAt(contractInstance.options.address, 0) - assert.deepEqual(storage, '0xc8') + assert.deepEqual(storage, '0x01') }) }) describe('eth_call', () => {