Skip to content

Commit

Permalink
v1 -> govv1
Browse files Browse the repository at this point in the history
  • Loading branch information
faddat committed Dec 16, 2023
1 parent d18915f commit 30408a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/ibctesting/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
capabilitytypes "github.com/cosmos/cosmos-sdk/x/capability/types"
govkeeper "github.com/cosmos/cosmos-sdk/x/gov/keeper"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
v1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
govv1 "github.com/cosmos/cosmos-sdk/x/gov/types/v1"
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
teststaking "github.com/cosmos/cosmos-sdk/x/staking/testutil"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
Expand Down Expand Up @@ -683,17 +683,17 @@ func mustSubmitAndExecuteLegacyProposal(t *testing.T, ctx sdk.Context, content v
contentMsg, err := submitLegacyProposal(t, ctx.WithEventManager(sdk.NewEventManager()), content, myActorAddress, authority, msgServer)
require.NoError(t, err)

_, err = msgServer.ExecLegacyContent(sdk.WrapSDKContext(ctx), v1.NewMsgExecLegacyContent(contentMsg.Content, authority))
_, err = msgServer.ExecLegacyContent(sdk.WrapSDKContext(ctx), govv1.NewMsgExecLegacyContent(contentMsg.Content, authority))
require.NoError(t, err)
}

// does not fail on submit proposal
func submitLegacyProposal(t *testing.T, ctx sdk.Context, content v1beta1.Content, myActorAddress, govAuthority string, msgServer v1.MsgServer) (*v1.MsgExecLegacyContent, error) {
func submitLegacyProposal(t *testing.T, ctx sdk.Context, content v1beta1.Content, myActorAddress, govAuthority string, msgServer govv1.MsgServer) (*govv1.MsgExecLegacyContent, error) {
t.Helper()
contentMsg, err := v1.NewLegacyContent(content, govAuthority)
contentMsg, err := govv1.NewLegacyContent(content, govAuthority)
require.NoError(t, err)

proposal, err := v1.NewMsgSubmitProposal(
proposal, err := govv1.NewMsgSubmitProposal(
[]sdk.Msg{contentMsg},
sdk.Coins{},
myActorAddress,
Expand Down

0 comments on commit 30408a7

Please sign in to comment.