hermes query channel end
returns Uninitialized
result state when invalid channel/port is provided.
#875
Labels
O: usability
Objective: cause to improve the user experience (UX) and ease using the product
Milestone
Crate
relayer-cli
Summary of Bug
The command
hermes query channel end
requires the port ID to be specified first, followed by the channel ID. If the argument position is wrong, the command returns a success result withUninitialized
state, instead of reporting failure. This can also happen when any invalid port ID or channel ID is provided.Note: same issue exists for
hermes query connection end
when a non-existing connection id is specified.A success result is as follows:
When the argument for port ID and channel ID are interchanged, the following result is returned:
@ancazamfir explains that this is because the RPC returns the uninitialized result, while GRPC returns the expected failure result:
Version
0.2.0
Steps to Reproduce
The following commands return uninitialized results instead of reporting failure:
Acceptance Criteria
hermes query channel end chain-id {invalid-port} {invalid-channel}
should return failure instead of uninitialized result.For Admin Use
The text was updated successfully, but these errors were encountered: