aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-07-13 02:07:16 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2018-08-01 18:04:35 +0800
commitb800bfb02138f843538bca55a40d6a4e0d1be60f (patch)
tree4d0162665f6f185e368e0831359d336e8251e438 /docs
parentc8232d9759458d5f6e1442533457d8529686eea7 (diff)
downloaddexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.gz
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.bz2
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.lz
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.xz
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.tar.zst
dexon-solidity-b800bfb02138f843538bca55a40d6a4e0d1be60f.zip
Fix tests regarding contract type conversion.
Diffstat (limited to 'docs')
-rw-r--r--docs/frequently-asked-questions.rst2
-rw-r--r--docs/types.rst2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/frequently-asked-questions.rst b/docs/frequently-asked-questions.rst
index cb46dea6..c2df0d3a 100644
--- a/docs/frequently-asked-questions.rst
+++ b/docs/frequently-asked-questions.rst
@@ -379,7 +379,7 @@ In this example::
}
contract A {
- address child;
+ B child;
function test() public {
child = (new B).value(10)(); //construct a new B with 10 wei
diff --git a/docs/types.rst b/docs/types.rst
index 3aad413d..566c4c19 100644
--- a/docs/types.rst
+++ b/docs/types.rst
@@ -901,7 +901,7 @@ for each ``_KeyType``, recursively.
function f() public returns (uint) {
MappingExample m = new MappingExample();
m.update(100);
- return m.balances(this);
+ return m.balances(address(this));
}
}