From e136ed3086f56ae7b0165a43b8beae060632c850 Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Tue, 2 Apr 2019 12:56:58 -0400 Subject: [PATCH] add eth_coinbase test --- remix-simulator/test/blocks.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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") + }) + })