diff --git a/remix-simulator/test/blocks.js b/remix-simulator/test/blocks.js index 8cc275c20c..3b71966fe5 100644 --- a/remix-simulator/test/blocks.js +++ b/remix-simulator/test/blocks.js @@ -6,7 +6,9 @@ var assert = require('assert') describe('blocks', function () { before(function () { - let provider = new RemixSim.Provider() + let provider = new RemixSim.Provider({ + coinbase: "0x0000000000000000000000000000000000000001" + }) web3.setProvider(provider) }) @@ -43,4 +45,10 @@ describe('blocks', function () { let gasPrice = await web3.eth.getGasPrice() assert.equal(gasPrice, 1) }) + + it('should get coinbase', async function () { + let coinbase = await web3.eth.getCoinbase() + assert.equal(coinbase, "0x0000000000000000000000000000000000000001") + }) + })