From fe45221952d554fc91a0e9aeef95c852e613530b Mon Sep 17 00:00:00 2001 From: Manidos Date: Wed, 27 Jul 2016 13:27:56 +0600 Subject: [PATCH] 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(-) diff --git a/docs/contracts.rst b/docs/contracts.rst index c02c1490a..81c5d353e 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; }