aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorManidos <iammanid@gmail.com>2016-07-27 15:27:56 +0800
committerGitHub <noreply@github.com>2016-07-27 15:27:56 +0800
commitfe45221952d554fc91a0e9aeef95c852e613530b (patch)
tree472b5de2d0cba8b4238deff054fe66756b73a3cc /docs
parent2dbadbabb3eba4f4649d22b443a866034e75385c (diff)
downloaddexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar
dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar.gz
dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar.bz2
dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar.lz
dexon-solidity-fe45221952d554fc91a0e9aeef95c852e613530b.tar.xz
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) ^-------------------^
Diffstat (limited to 'docs')
-rw-r--r--docs/contracts.rst2
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;
}