dev-resources.site
for different kinds of informations.
Ethereum:New Solidity constructor
Published at
5/19/2018
Categories
ethereum
solidity
Author
sot528
Since Solidity v0.4.23, Solidity has new constructor notation.
And The old one was deprecated.
Old
pragma solidity 0.4.23;
contract Foo {
function Foo() public {
// ...
}
}
New
pragma solidity 0.4.23;
contract Foo {
constructor() public {
// ...
}
}
Note
The old one raise below.
Warning: Defining constructors as functions with the same name as the contract is deprecated. Use "constructor(...) { ... }" instead.
Articles
11 articles in total
Delete CircleCI's invisible AWS credentials
read article
Remove unnecessary Docker resources.
read article
Install and Update Solidity(solc) in Mac
read article
Try Vyper in Truffle v5.
read article
Run levelDB + Node.js in 1 min on Docker
read article
Try to run libp2p(js-libp2p) anyway.
read article
Ethereum:New Solidity constructor
currently reading
"Route did not stabilize in expected time" on CloudFromation
read article
EC2にEthereumメインネットのparityノードを立てる
read article
暗号通貨の相場をターミナルで表示する
read article
Renamed tools in Ethereum
read article
Featured ones: