more specific error
This commit is contained in:
@ -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')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user