Skip to content

Commit

Permalink
format client IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed Feb 12, 2024
1 parent 12e7a67 commit d43517a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/light-clients/07-tendermint/light_client_module_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
ibctesting "github.com/cosmos/ibc-go/v8/testing"
)

const (
tmClientID = "07-tendermint-100"
wasmClientID = "08-wasm-0"
var (
tmClientID = clienttypes.FormatClientIdentifier(exported.Tendermint, 100)
solomachineClientID = clienttypes.FormatClientIdentifier(exported.Solomachine, 0)
)

func (suite *TendermintTestSuite) TestRecoverClient() {
Expand Down Expand Up @@ -40,7 +40,7 @@ func (suite *TendermintTestSuite) TestRecoverClient() {
{
"subject client ID does not contain 07-tendermint prefix",
func() {
subjectClientID = wasmClientID
subjectClientID = solomachineClientID
},
clienttypes.ErrInvalidClientType,
},
Expand All @@ -54,7 +54,7 @@ func (suite *TendermintTestSuite) TestRecoverClient() {
{
"substitute client ID does not contain 07-tendermint prefix",
func() {
substituteClientID = wasmClientID
substituteClientID = solomachineClientID
},
clienttypes.ErrInvalidClientType,
},
Expand Down

0 comments on commit d43517a

Please sign in to comment.