Commit e136ed30 authored by Iuri Matias's avatar Iuri Matias

add eth_coinbase test

parent bdb7ead3
......@@ -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")
})
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment