1

I add a new Smart Contract and create it, but I get the following bug. Why is the contract not created? I take the etherium wallet and the ropsten testnetwork The first picture include the constructor. Thanks for helping. enter image description here enter image description here

enter image description here

1

Your are sending 0.2 ether with the contract creation but your constructor is not payable.

Either do not send ether when creating the contract or modify constructor to be payable.

contract A {
    address internal owner;
    constructor() public payable {
        owner = msg.sender;
    }
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.