refactor: remove header type from NewContext (#17426)
Co-authored-by: marbar3778 <marbar3778@yahoo.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user