fix unit tests

pull/5370/head
yann300 2 years ago committed by Aniket
parent 93ae75446d
commit 48977a8cc5
  1. 8
      libs/remix-simulator/test/blocks.ts

@ -212,13 +212,13 @@ describe('blocks', () => {
let storage = await web3.eth.getStorageAt(contractInstance.options.address, 0) let storage = await web3.eth.getStorageAt(contractInstance.options.address, 0)
assert.deepEqual(storage, '0x64') 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) 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) storage = await web3.eth.getStorageAt(contractInstance.options.address, 0)
assert.deepEqual(storage, '0xc8') assert.deepEqual(storage, '0x01')
}) })
}) })
describe('eth_call', () => { describe('eth_call', () => {

Loading…
Cancel
Save