From fe504f36740b30e38fc18b8cb675b20012ab4ef0 Mon Sep 17 00:00:00 2001 From: omerlavanet Date: Thu, 28 Nov 2024 16:46:52 +0200 Subject: [PATCH] fix ctx --- x/dualstaking/keeper/delegate_credit_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/x/dualstaking/keeper/delegate_credit_test.go b/x/dualstaking/keeper/delegate_credit_test.go index 578016e943..597eb02ad6 100644 --- a/x/dualstaking/keeper/delegate_credit_test.go +++ b/x/dualstaking/keeper/delegate_credit_test.go @@ -254,12 +254,11 @@ func TestCalculateMonthlyCredit(t *testing.T) { } func TestDelegationSet(t *testing.T) { - _, ctx := keepertest.DualstakingKeeper(t) ts := newTester(t) // 1 delegator, 1 provider staked, 0 provider unstaked, 0 provider unstaking ts.setupForDelegation(1, 1, 0, 0) - + ctx := ts.Ctx _, client1Addr := ts.GetAccount(common.CONSUMER, 0) _, provider1Addr := ts.GetAccount(common.PROVIDER, 0) k := ts.Keepers.Dualstaking