Home > Blockchain >  With the etheric fang Mist deployment of smart client compile errors in contracts example, example h
With the etheric fang Mist deployment of smart client compile errors in contracts example, example h

Time:09-24

With the etheric fang Mist deployment of smart client compile errors in contracts example, example how could go wrong?

CodePudding user response:

You this smart contract the constructor "function in the Coin () {... } "is written in accordance with the old syntax; After Solidify 0.4.22 version does not support this statement constructor syntax, you must use a constructor keywords, there are two kinds of solution, either you according to the new syntax to modify the code; Either you use 0.4.22 version before Solidify compiler,
Solution a: will the constructor function "Coin () {... } "is replaced by:
 constructor () public {
Minter=MSG. Sender;//the place you like spelling mistakes, the miners should be a miner
}

Scheme 2: Mist like can't choose the compiler version, you can use a Remix the IDE intelligent contracts, compilation and deployment in the Compile TAB, select the 0.4.0 version of the compiler; In the Run TAB in the Settings Environment for "Web3 Provider" and then connect your local node of the etheric fang, the default URL "http://localhost:8545"
Resources:
The constructor syntax: https://solidity.readthedocs.io/en/v0.4.22/contracts.html#creating-contracts
Want the IDE: the etheric fang official Solidify IDE, https://remix.ethereum.org/

CodePudding user response:

Hello, I tried to use Web3 Provider "link local node, error said." Not possible to connect to the Web3 Provider. Make sure the Provider is running and a connection is open (via IPC or RPC). "how can I check the local node URL? Can and want to IDE?

CodePudding user response:

I successfully connected, but run times out "the creation of" errored: authentication men: password or unlock ", where is the need to enter account password?

CodePudding user response:

I'm done, thank you

CodePudding user response:

Well, the etheric fang external accounts default is locked, need a password to unlock before sending trade,
In Remix IDE, simpler approach is to open a "Personal Mode", in the Settings TAB - General Settings -
Enable the Personal Mode, when you send the transaction, will the pop-up dialog allows you to enter a password,
It is important to note that this applies to private chain or a learning phase, if the production environment to do so is more dangerous, resources: https://bcsec.org/index/detail/tag/2/id/181

CodePudding user response:

Thank you, I also met a problem: I use this app # CSDN# found have technical content of the blog and friends to seek common to want to deploy an error problem in intelligent contracts, gathered together at https://bbs.csdn.net/topics/392517518
  • Related