Skip to content

Commit 94ccf18

Browse files
author
Chris Ward
committed
Remove FAQ question already covered in docs
1 parent 6741eb1 commit 94ccf18

1 file changed

Lines changed: 1 addition & 28 deletions

File tree

docs/frequently-asked-questions.rst

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -200,33 +200,6 @@ and `pong.sol <https://github.com/fivedogit/solidity-baby-steps/blob/master/cont
200200

201201

202202

203-
204-
How do I initialize a contract with only a specific amount of wei?
205-
==================================================================
206-
207-
Currently the approach is a little ugly, but there is little that can be done to improve it.
208-
In the case of a ``contract A`` calling a new instance of ``contract B``, parentheses have to be used around
209-
``new B`` because ``B.value`` would refer to a member of ``B`` called ``value``.
210-
You will need to make sure that you have both contracts aware of each other's presence and that ``contract B`` has a ``payable`` constructor.
211-
In this example::
212-
213-
pragma solidity ^0.4.0;
214-
215-
contract B {
216-
function B() public payable {}
217-
}
218-
219-
contract A {
220-
address child;
221-
222-
function test() public {
223-
child = (new B).value(10)(); //construct a new B with 10 wei
224-
}
225-
}
226-
227-
.. TODO: Does this mean it does work for internal?
228-
229-
230203
What is the relationship between ``bytes32`` and ``string``? Why is it that ``bytes32 somevar = "stringliteral";`` works and what does the saved 32-byte hex value mean?
231204
========================================================================================================================================================================
232205

@@ -300,4 +273,4 @@ More Questions?
300273
===============
301274

302275
If you have more questions or your question is not answered here, please talk to us on
303-
`gitter <https://gitter.im/ethereum/solidity>`_ or file an `issue <https://github.com/ethereum/solidity/issues>`_.
276+
`gitter <https://gitter.im/ethereum/solidity>`_ or file an `issue <https://github.com/ethereum/solidity/issues>`_.

0 commit comments

Comments
 (0)