current position:Home>How to assign and deploy constructor parameters in geth console?

How to assign and deploy constructor parameters in geth console?

2022-02-03 20:51:48 Q & A of Denglian community

The parameters of the constructor are geth Of console How to deploy assignment in ?




Take the answer 1:

stay Geth The console can be used directly web3 The interface of , Then just check web3 How to pass the participation to the constructor when deploying the contract . The document is here : Contract deployment .

In fact, there is a simpler way , Is in the Remix The compiler will generate the code of deployment contract for us .Remix  The compiler copies the deployment contract code

You can also refer to what I wrote a long time ago : Development environment construction






Other answers 1:


Other answers 2:

copyright notice
author[Q & A of Denglian community],Please bring the original link to reprint, thank you.
https://en.netfreeman.com/2022/02/202202032051436375.html

Random recommended