mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update frequently-asked-questions.rst
This commit is contained in:
parent
49dc38bac0
commit
927a9710d5
@ -652,6 +652,8 @@ How do I initialize a contract with only a specific amount of wei?
|
||||
==================================================================
|
||||
|
||||
Currently the approach is a little ugly, but there is little that can be done to improve it.
|
||||
In the case of a `contract A` calling a new instance of `contract B`, parentheses have to be used around
|
||||
`new B` because `B.value` would refer to a member of `B` called `value`.
|
||||
You will need to make sure that you have both contracts aware of each other's presence.
|
||||
In this example::
|
||||
contract B {}
|
||||
|
Loading…
Reference in New Issue
Block a user