I have followed the previous solutions to this problem as mentioned in this question: Mist: "No data is deployed on the contract address!"
I also checked if the Estimated consumption fee is > Provide Max fee
. There were some cases when not using they keyword "payable" was the problem where msg.value
was called. I have checked it as well. Still, I am getting "No data deployed" error. Following is my code:
pragma solidity 0.4.8;
contract SGBFactory {
event FundsReceived(address indexed sender, uint256 amt);
mapping (address => uint256) public investmentFrom;
address public owner;
modifier onlyOwner {
if(msg.sender != owner) throw;
_;
}
function SGBFactory() {
// constructor
owner = msg.sender;
}
function() payable {
investmentFrom[msg.sender] += msg.value;
FundsReceived(msg.sender, msg.value);
}
}
Is there a problem in the code leading to this? The error message is not very helpful.