Fix tests after OpenZeppelin update

This commit is contained in:
Mark Spanbroek 2022-03-15 16:18:44 +01:00 committed by markspanbroek
parent c79059e470
commit 29698fee71
2 changed files with 2 additions and 2 deletions

View File

@ -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"
)
})
})

View File

@ -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"
)
})