mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Make Creating contracts code examples match style guide
This commit is contained in:
parent
2491ce45a1
commit
2c705145ae
@ -35,6 +35,7 @@ This means that cyclic creation dependencies are impossible.
|
|||||||
|
|
||||||
pragma solidity >=0.4.22 <0.7.0;
|
pragma solidity >=0.4.22 <0.7.0;
|
||||||
|
|
||||||
|
|
||||||
contract OwnedToken {
|
contract OwnedToken {
|
||||||
// `TokenCreator` is a contract type that is defined below.
|
// `TokenCreator` is a contract type that is defined below.
|
||||||
// It is fine to reference it as long as it is not used
|
// It is fine to reference it as long as it is not used
|
||||||
@ -86,6 +87,7 @@ This means that cyclic creation dependencies are impossible.
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
contract TokenCreator {
|
contract TokenCreator {
|
||||||
function createToken(bytes32 name)
|
function createToken(bytes32 name)
|
||||||
public
|
public
|
||||||
|
Loading…
Reference in New Issue
Block a user