From 57daf5f1fe4ae370852df4b3ae096159bd7acbef Mon Sep 17 00:00:00 2001 From: zielvna Date: Wed, 10 Apr 2024 15:58:55 +0200 Subject: [PATCH] fix tests --- test/clamm.test.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/clamm.test.ts b/test/clamm.test.ts index 047a29d..051b554 100644 --- a/test/clamm.test.ts +++ b/test/clamm.test.ts @@ -1347,7 +1347,8 @@ describe('math tests', () => { const almostMinSqrtPrice = minSqrtPrice + 1n beforeEach(async () => { - clamm = (await deployCLAMM(sender)).contractInstance + const uints = await deployUints(sender) + clamm = (await deployCLAMM(sender, uints.contractInstance.contractId)).contractInstance }) test('max result, increase sqrt_price case', async () => { @@ -1419,7 +1420,8 @@ describe('math tests', () => { const almostMinSqrtPrice = minSqrtPrice + 1n beforeEach(async () => { - clamm = (await deployCLAMM(sender)).contractInstance + const uints = await deployUints(sender) + clamm = (await deployCLAMM(sender, uints.contractInstance.contractId)).contractInstance }) test('max result, increase sqrt_price case', async () => {