From b800bfb02138f843538bca55a40d6a4e0d1be60f Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 12 Jul 2018 20:07:16 +0200 Subject: Fix tests regarding contract type conversion. --- docs/frequently-asked-questions.rst | 2 +- docs/types.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') 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)); } } -- cgit