From 8dc7525d61fa822d1e93fbd83f871afb35450cb8 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Wed, 22 Feb 2023 15:51:33 +0200 Subject: [PATCH] add tx wait --- test/unit/veOcean.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/unit/veOcean.test.ts b/test/unit/veOcean.test.ts index 11dd82c3..c44ebc5a 100644 --- a/test/unit/veOcean.test.ts +++ b/test/unit/veOcean.test.ts @@ -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)