Skip to content

Commit

Permalink
fix: remove magic number and have stateOpen const
Browse files Browse the repository at this point in the history
  • Loading branch information
jlehtimaki committed Oct 30, 2023
1 parent b6da3ef commit 248f8b9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ibc/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ import (
"github.com/archway-network/relayer_exporter/pkg/config"
)

const stateOpen = 3

type ClientsInfo struct {
ChainA *relayer.Chain
ChainAClientInfo relayer.ClientStateInfo
Expand Down Expand Up @@ -135,7 +137,7 @@ func GetChannelInfo(ibc *relayer.IBCdata, rpcs *map[string]config.RPC) (Channels
}

ch := chantypes.IdentifiedChannel{
State: 3,
State: stateOpen,
Ordering: order,
Counterparty: chantypes.Counterparty{
PortId: c.Chain2.PortID,
Expand Down

0 comments on commit 248f8b9

Please sign in to comment.