1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00
This commit is contained in:
alexcos20 2023-02-23 10:51:15 +02:00
parent 3a635c96f2
commit a149748ef7

View File

@ -137,7 +137,7 @@ describe('veOcean tests', () => {
const currentBalance = await veOcean.getLockedAmount(await Alice.getAddress())
const currentLock = await veOcean.lockEnd(await Alice.getAddress())
const amount = '200'
await approve(
let tx = await approve(
Alice,
config,
await Alice.getAddress(),
@ -145,7 +145,8 @@ describe('veOcean tests', () => {
addresses.veOCEAN,
amount
)
await veOcean.increaseAmount(amount)
tx = await veOcean.increaseAmount(amount)
await tx.wait()
const newCurrentBalance = await veOcean.getLockedAmount(await Alice.getAddress())
const newCurrentLock = await veOcean.lockEnd(await Alice.getAddress())
assert(newCurrentLock === currentLock, 'Lock time should not change')