Skip to content

Commit

Permalink
refactor: use correct address codec
Browse files Browse the repository at this point in the history
  • Loading branch information
duvbell committed Jan 10, 2025
1 parent f154688 commit 81ab0fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions e2e/testsuite/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ import (
govtypesv1 "cosmossdk.io/x/gov/types/v1"
govtypesv1beta1 "cosmossdk.io/x/gov/types/v1beta1"

abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"
"github.com/cosmos/cosmos-sdk/client"
"github.com/cosmos/cosmos-sdk/client/flags"
"github.com/cosmos/cosmos-sdk/client/tx"
addresscodec "github.com/cosmos/cosmos-sdk/codec/address"
sdk "github.com/cosmos/cosmos-sdk/types"

abci "github.com/cometbft/cometbft/api/cometbft/abci/v1"

"github.com/cosmos/ibc-go/e2e/testsuite/query"
"github.com/cosmos/ibc-go/e2e/testsuite/sanitize"
"github.com/cosmos/ibc-go/e2e/testvalues"
Expand Down Expand Up @@ -158,7 +158,7 @@ func (s *E2ETestSuite) ExecuteGovV1Proposal(ctx context.Context, msg sdk.Msg, ch
panic("ExecuteAndPassGovV1Proposal must be passed a cosmos.CosmosChain")
}

sender, err := sdk.AccAddressFromBech32(user.FormattedAddress())
sender, err := addresscodec.NewBech32Codec(cosmosChain.Config().Bech32Prefix).StringToBytes(user.FormattedAddress())
s.Require().NoError(err)

proposalID := s.proposalIDs[cosmosChain.Config().ChainID]
Expand Down

0 comments on commit 81ab0fe

Please sign in to comment.