You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
contract C {
modifier onlyOwner {
if (msg.sender != owner) throw;
_;
}
function setBuyPrice(uint256 newBuyPrice) onlyOwner public {
buyPrice = newBuyPrice;
}
function buy() external {
... // buyPrice is used to determine the number of tokens purchased
}
}
updateOwner()setBuyPrice() has no event, so it is difficult to track off-chain changes in the buy price.
There is no function named updateOwner(), it seems the function should be setBuyPrice().
Describe the issue:
There is a typo in the wiki.
updateOwner()
setBuyPrice()
has no event, so it is difficult to track off-chain changes in the buy price.updateOwner()
, it seems the function should besetBuyPrice()
.See: https://github.com/crytic/slither/wiki/Detector-Documentation#exploit-scenario-82
Code example to reproduce the issue:
https://github.com/crytic/slither/wiki/Detector-Documentation#exploit-scenario-82
Version:
Relevant log output:
No response
The text was updated successfully, but these errors were encountered: