refactor: remove header type from NewContext (#17426)

Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
Marko
2023-08-21 16:29:20 +00:00
committed by GitHub
co-authored by marbar3778
parent dc62bd7ade
commit 393dcc1f2a
38 changed files with 79 additions and 102 deletions
+1 -2
View File
@@ -5,7 +5,6 @@ import (
"math/rand"
"testing"
cmtproto "github.com/cometbft/cometbft/proto/tendermint/types"
"github.com/stretchr/testify/require"
sdk "github.com/cosmos/cosmos-sdk/types"
@@ -39,7 +38,7 @@ func TestNewWeightedProposalContent(t *testing.T) {
require.Equal(t, key, pContent.AppParamsKey())
require.Equal(t, weight, pContent.DefaultWeight())
ctx := sdk.NewContext(nil, cmtproto.Header{}, true, nil)
ctx := sdk.NewContext(nil, true, nil)
require.Equal(t, content, pContent.ContentSimulatorFn()(nil, ctx, nil))
}