Use state enums in connection handshake log #3385
Labels
good first issue
Good for newcomers
type: code hygiene
Clean up code but without changing functionality or interfaces
Update hardcoded strings used within the ibc connection handshake code to use enum
String()
methods.At the end of each handshake handler the previous state and current state is logged. Currently, the states are hardcoded.
Update them to use the correct enum
String()
methods.See
03-channel/keeper/handshake.go
. E.g. https://github.com/cosmos/ibc-go/blob/main/modules/core/03-connection/keeper/handshake.go#L149The text was updated successfully, but these errors were encountered: