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:
parent
6186c71a6f
commit
8dc7525d61
@ -125,7 +125,8 @@ describe('veOcean tests', () => {
|
|||||||
it('Alice should increase the lock time', async () => {
|
it('Alice should increase the lock time', async () => {
|
||||||
const currentLock = await veOcean.lockEnd(await Alice.getAddress())
|
const currentLock = await veOcean.lockEnd(await Alice.getAddress())
|
||||||
const newLock = parseInt(String(currentLock)) + 7 * 86400 + 20
|
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())
|
const newCurrentLock = await veOcean.lockEnd(await Alice.getAddress())
|
||||||
console.log(currentLock)
|
console.log(currentLock)
|
||||||
console.log(newCurrentLock)
|
console.log(newCurrentLock)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user