Commit 1c1fa5d9 by Nicolás Venturo Committed by Francisco Giordano

Silence false positive warning on preValidatePurchase (#1857)

parent 0da886c9
...@@ -138,6 +138,7 @@ contract Crowdsale is ReentrancyGuard { ...@@ -138,6 +138,7 @@ contract Crowdsale is ReentrancyGuard {
function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view { function _preValidatePurchase(address beneficiary, uint256 weiAmount) internal view {
require(beneficiary != address(0), "Crowdsale: beneficiary is the zero address"); require(beneficiary != address(0), "Crowdsale: beneficiary is the zero address");
require(weiAmount != 0, "Crowdsale: weiAmount is 0"); require(weiAmount != 0, "Crowdsale: weiAmount is 0");
this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment