mirror of
https://github.com/codex-storage/codex-contracts-eth.git
synced 2025-01-10 11:55:44 +00:00
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…
x
Reference in New Issue
Block a user