ECRecover test should revert because of wrong calldata size (#1050)

* Assume that token is mintable.

* ECRecover test should revert because of wrong calldata size

* fix: use expectThrow

* fix: ignore failing test until solc^0.5.0
This commit is contained in:
Leonardo
2018-07-16 23:38:57 +01:00
committed by Matt Condon
parent b120b9aff7
commit 99e4b081dc
2 changed files with 12 additions and 7 deletions

View File

@ -22,6 +22,7 @@ contract MintedCrowdsale is Crowdsale {
)
internal
{
require(MintableToken(token).mint(_beneficiary, _tokenAmount));
// Potentially dangerous assumption about the type of the token.
require(MintableToken(address(token)).mint(_beneficiary, _tokenAmount));
}
}