ibc-rs icon indicating copy to clipboard operation
ibc-rs copied to clipboard

Improve error handling when decoding `Any` to `MsgEnvelope`

Open Farhad-Shabani opened this issue 2 years ago • 0 comments

Problem Statement

Currently, when converting an incoming IBC message of Any type to a MsgEnvelope, we are mapping decoding errors to a variant of RouterError (e.g. here), leading to confusion. Thus, this issue should aim to:

  • Fix incorrect mapping
  • Utilize more efficient manner to capture the source error

We came across this issue in https://github.com/cosmos/ibc-rs/pull/949 and it is currently blocked on #270. We can address this after refactoring our error handling system.

Farhad-Shabani avatar Nov 07 '23 17:11 Farhad-Shabani