1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

add tx wait

This commit is contained in:
alexcos20 2023-02-22 15:51:33 +02:00
parent 6186c71a6f
commit 8dc7525d61

View File

@ -125,7 +125,8 @@ describe('veOcean tests', () => {
it('Alice should increase the lock time', async () => {
const currentLock = await veOcean.lockEnd(await Alice.getAddress())
const newLock = parseInt(String(currentLock)) + 7 * 86400 + 20
await veOcean.increaseUnlockTime(newLock)
const tx = await veOcean.increaseUnlockTime(newLock)
await tx.wait()
const newCurrentLock = await veOcean.lockEnd(await Alice.getAddress())
console.log(currentLock)
console.log(newCurrentLock)