New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
block.coinbase can't be used in autoExec() #493
Comments
What's the |
^0.4.24 |
I've tried the |
Would you give some other info? @luqz I can not reproduce. the contract:
https://gist.github.com/kaikai1024/74944724904174cd59e4116dd6456b6e |
Sorry, I try it again. Your code works well.
|
Would you please get the coinbase address to double-check.
The balance is not right? |
I checked the balance of 0x0000000000000000000000000000000000000000, |
ok, i see. So the problem is why coinbase is zero. I'll use your code to check it. |
How do you start the chain? @luqz |
|
It really can not get the |
Reconfirm: not |
Description
block.coinbase can't be used in autoExec()
Steps to Reproduce
SysConfig.autoExec=true
when create chain;address(block.coinbase).transfer(1)
in functionautoExec()
;Expected behavior: contract balance sub 1 per block
Actual behavior: contract balance remain unchanged
Reproduce how often: every time.
Versions
v0.22.0
Additional Information
address(0x5444B13eFe73A7de4d56f2c043424115C8e26eF1).transfer(1)
works butaddress(block.coinbase).transfer(1)
not.The text was updated successfully, but these errors were encountered: