diff options
author | Manidos <iammanid@gmail.com> | 2016-07-27 15:27:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-27 15:27:56 +0800 |
commit | fe45221952d554fc91a0e9aeef95c852e613530b (patch) | |
tree | 472b5de2d0cba8b4238deff054fe66756b73a3cc | |
parent | 2dbadbabb3eba4f4649d22b443a866034e75385c (diff) | |
download | dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar.gz dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar.zst dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.zip |
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)
^-------------------^
-rw-r--r-- | docs/contracts.rst | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |