3

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.

radiopassive
  • 409
  • 1
  • 3
  • 8

1 Answers1

1

I was able to deploy this contract (it's on the Ropsten test network at address 0x70e91f8500667fd5e190f6ea31fc113b013a2067), and send Ether to its fallback function. I used a gas limit of 4,707,786 and deployed from remix.ethereum.org using MetaMask.

I'd suggest retrying with the above "settings" and see if it now works. There may have been a temporary issue with the network when you tried previously.

Hope this helps!

Adam Dossa
  • 1,287
  • 7
  • 12