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)
            ^-------------------^
This commit is contained in:
Manidos 2016-07-27 13:27:56 +06:00 committed by GitHub
parent 2dbadbabb3
commit fe45221952

View File

@ -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;
}