Fix tests after OpenZeppelin update
This commit is contained in:
parent
c79059e470
commit
29698fee71
|
@ -44,7 +44,7 @@ describe("Collateral", function () {
|
|||
let allowed = await token.allowance(account0.address, collateral.address)
|
||||
let invalidAmount = allowed.toNumber() + 1
|
||||
await expect(collateral.deposit(invalidAmount)).to.be.revertedWith(
|
||||
"ERC20: transfer amount exceeds allowance"
|
||||
"ERC20: insufficient allowance"
|
||||
)
|
||||
})
|
||||
})
|
||||
|
|
|
@ -62,7 +62,7 @@ describe("Marketplace", function () {
|
|||
let insufficient = request.maxPrice - 1
|
||||
await token.approve(marketplace.address, insufficient)
|
||||
await expect(marketplace.requestStorage(request)).to.be.revertedWith(
|
||||
"ERC20: transfer amount exceeds allowance"
|
||||
"ERC20: insufficient allowance"
|
||||
)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue