I have tried to deploy the example given in the following link(using remix and geth).While deploying, an error occurred in both geth and remix. And I found that the usage of "require" causes the problem.How to solve this issue without removing the "require"?
1 Answer
require(msg.value == 30 ether, "30 ether initial funding required");
Base on the code for the constructor you need to transfer 30 ethers to the contract upon deployment.
-
Thank you. Successfully deployed the code in Remix.But I don't know how to transfer the value while deploying contract in geth.– Pt.ARCommented Oct 10, 2018 at 11:21
-
-
var gasAmt = eth.estimateGas({data:bin})
throws gas required exceeds allowance or always failing transaction in geth– Pt.ARCommented Oct 12, 2018 at 8:30