From fe45221952d554fc91a0e9aeef95c852e613530b Mon Sep 17 00:00:00 2001 From: Manidos <iammanid@gmail.com> Date: Wed, 27 Jul 2016 13:27:56 +0600 Subject: Update contracts.rst I've changed line 88, because **if (msg.sender == creator)** threw an exception in solidity browser compier. Untitled:25:13: Error: Operator == not compatible with types address and contract TokenCreator if (msg.sender == creator) ^-------------------^ --- docs/contracts.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/contracts.rst b/docs/contracts.rst index c02c1490..81c5d353 100644 --- a/docs/contracts.rst +++ b/docs/contracts.rst @@ -85,7 +85,7 @@ This means that cyclic creation dependencies are impossible. // Only the creator can alter the name -- // the comparison is possible since contracts // are implicitly convertible to addresses. - if (msg.sender == creator) + if (msg.sender == address(creator)) name = newName; } -- cgit v1.2.3