Closed rstormsf closed 6 years ago
I was thinking of adding this check: require(beneficiary == msg.sender); to https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/crowdsale/Crowdsale.sol#L70
require(beneficiary == msg.sender);
Any opinions? I believe that's if someone calls from low level, we need to make sure they are doing it correctly.
Actually the buyTokens method is designed so that anyone can execute a purchase for another beneficiary! So the check goes against the intended semantics.
buyTokens
got it. makes sense.
I was thinking of adding this check:
require(beneficiary == msg.sender);
to https://github.com/OpenZeppelin/zeppelin-solidity/blob/master/contracts/crowdsale/Crowdsale.sol#L70Any opinions? I believe that's if someone calls from low level, we need to make sure they are doing it correctly.