more specific error

This commit is contained in:
Noah Zinsmeister
2019-10-31 11:29:33 -04:00
parent 699aa8a501
commit fbaf1f992a

View File

@ -122,8 +122,10 @@ describe('ERC20', () => {
it('transfer:fail', async () => {
await expect(token.transfer(other.address, TOKEN_DETAILS.totalSupply.add(1))).to.be.revertedWith(
'SafeMath: subtraction overflow'
'SafeMath256: subtraction overflow'
)
await expect(token.connect(other).transfer(other.address, 1)).to.be.revertedWith(
'SafeMath256: subtraction overflow'
)
await expect(token.connect(other).transfer(other.address, 1)).to.be.revertedWith('SafeMath: subtraction overflow')
})
})