mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
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:
parent
2dbadbabb3
commit
fe45221952
@ -85,7 +85,7 @@ This means that cyclic creation dependencies are impossible.
|
|||||||
// Only the creator can alter the name --
|
// Only the creator can alter the name --
|
||||||
// the comparison is possible since contracts
|
// the comparison is possible since contracts
|
||||||
// are implicitly convertible to addresses.
|
// are implicitly convertible to addresses.
|
||||||
if (msg.sender == creator)
|
if (msg.sender == address(creator))
|
||||||
name = newName;
|
name = newName;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user