From 9cceed225d57201a0db4af68ecce531a72c87001 Mon Sep 17 00:00:00 2001 From: GnaD13 Date: Wed, 21 Jun 2023 00:05:49 +0700 Subject: [PATCH] change to legacy context --- testing/chain.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/chain.go b/testing/chain.go index ec377205a8c..90fe63cab38 100644 --- a/testing/chain.go +++ b/testing/chain.go @@ -189,7 +189,7 @@ func NewTestChain(t *testing.T, coord *Coordinator, chainID string) *TestChain { // GetContext returns the current context for the application. func (chain *TestChain) GetContext() sdk.Context { - return chain.App.GetBaseApp().NewContext(false) + return chain.App.GetBaseApp().NewContextLegacy(false, chain.CurrentHeader) } // GetSimApp returns the SimApp to allow usage ofnon-interface fields.