Hi,
I am trying to write my first contract and am following the tutorial here:
https://dappsforbeginners.wordpress.com/tutorials/your-first-dapp/I copy paste the source code exactly as is. And the 'Execute' button is greyed out with compile error:
ERROR Solidity: Error: Successor block not found.
Could I please know whats going wrong here? I am using a private chain if that matters.
Regards,
Comments
In order to fix the bug, could you please tell us a bit more about
1. your operating system
2. which version of Solidity you are using
3. what the exact source code was that led to the error
Thanks!
OS : Win 8.1
Ethereum: 0.9.41
The exact source code:
contract metaCoin {
mapping (address => uint) balances;
function metaCoin() {
balances[msg.sender] = 10000;
}
function sendCoin(address receiver, uint amount) returns(bool sufficient) {
if (balances[msg.sender] < amount) return false;
balances[msg.sender] -= amount;
balances[receiver] += amount;
return true;
}
}
Thanks!
This code fails with Successor block error: This works fine.
for me it was happening when I would call another function. for example:
function xyz(parameters){
int abc = this.foo(parameters);
}
function foo(parameters) { ... }
it worked in the previous builds about 2 weeks ago. but not anymore.
Regards,
C:\Program Files\Ethereum 0.9.41\Release>solc --version
solc, the solidity compiler commandline interface
Version: 0.1.1-ed7a8a35/Release-Windows/msvc/JIT