Skip to content

Commit

Permalink
Update contracts.rst
Browse files Browse the repository at this point in the history
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)
            ^-------------------^
  • Loading branch information
Manidos authored Jul 27, 2016
1 parent 2dbadba commit fe45221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/contracts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fe45221

Please sign in to comment.