Skip to content

Commit

Permalink
byte to acc address
Browse files Browse the repository at this point in the history
  • Loading branch information
duvbell committed Jan 10, 2025
1 parent 81ab0fe commit 8c955e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion e2e/testsuite/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,9 @@ func (s *E2ETestSuite) ExecuteGovV1Proposal(ctx context.Context, msg sdk.Msg, ch
panic("ExecuteAndPassGovV1Proposal must be passed a cosmos.CosmosChain")
}

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

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

0 comments on commit 8c955e2

Please sign in to comment.