mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
add wait
This commit is contained in:
parent
3a635c96f2
commit
a149748ef7
@ -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')
|
||||
|
Loading…
x
Reference in New Issue
Block a user