You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
@Goldenflamer Thanks for the bump on this issue. Unfortunately this is a little lower priority than some of our other issues. That said, I plan on fixing this ASAP but if this is a blocker for you we highly encourage PR's!
block.coinbase is actually intended to be the 0x0 address, as it is the block that receives the reward. The bug is that eth_coinbase returns accounts[0].
The reason the block coinbase can't be accounts[0] by default is that each block would change the accounts balance, and would then break many tests that rely on this behavior.
This will be fixed in the next major version of ganache, where we'll allow for configuring the coinbase address.
Expected Behavior
I expected to get accounts[0] as
block.coinbase
.Current Behavior
I got 0x0000000000000000000000000000000000000000 as
block.coinbase
.curl -X POST --data '{"jsonrpc":"2.0", "method":"eth_coinbase", "params":[],"id":9999}' 127.0.0.1:8545
Gives me accounts[0].
Possible Solution
Steps to Reproduce (for bugs)
Context
Try to run tests for code that uses block.coinbase.
Your Environment
Ganache CLI v6.1.8 (ganache-core: 2.2.1)
OSX 10.13.6
The text was updated successfully, but these errors were encountered: