From ca7dd4cf2ffc078bd35a7ab162a10f5992b5a419 Mon Sep 17 00:00:00 2001 From: 0xTopaz Date: Tue, 10 Dec 2024 09:54:58 +0900 Subject: [PATCH] GSW-2023 chore: update gno.mod and use getter function in test code - remove require in gno.mod - use getter function in test code --- pool/_helper_test.gno | 3 +-- pool/gno.mod | 13 ------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/pool/_helper_test.gno b/pool/_helper_test.gno index ce061a77..8deb8863 100644 --- a/pool/_helper_test.gno +++ b/pool/_helper_test.gno @@ -183,8 +183,7 @@ func InitialisePoolTest(t *testing.T) { std.TestSetOrigCaller(users.Resolve(admin)) TokenApprove(t, gnsPath, admin, pool, maxApprove) poolPath := GetPoolPath(wugnotPath, gnsPath, fee3000) - _, exist := pools[poolPath] - if !exist { + if !DoesPoolPathExist(poolPath) { CreatePool(wugnotPath, gnsPath, fee3000, "79228162514264337593543950336") } diff --git a/pool/gno.mod b/pool/gno.mod index a4197a6c..3c88fce3 100644 --- a/pool/gno.mod +++ b/pool/gno.mod @@ -1,14 +1 @@ module gno.land/r/gnoswap/v1/pool - -require ( - gno.land/p/demo/json v0.0.0-latest - gno.land/p/demo/ufmt v0.0.0-latest - gno.land/p/demo/users v0.0.0-latest - gno.land/p/gnoswap/int256 v0.0.0-latest - gno.land/p/gnoswap/pool v0.0.0-latest - gno.land/p/gnoswap/uint256 v0.0.0-latest - gno.land/r/gnoswap/v1/common v0.0.0-latest - gno.land/r/gnoswap/v1/consts v0.0.0-latest - gno.land/r/gnoswap/v1/emission v0.0.0-latest - gno.land/r/gnoswap/v1/gns v0.0.0-latest -)