chore(relayer): improve ISM address error message (#2345)

Closes https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/2090

Recent improvements from
https://github.com/hyperlane-xyz/hyperlane-monorepo/pull/2195 already
catch the error in that user report. This PR just adds a hint as to why
fetching may have failed; in that report, the user's `fallback` function
was returning an empty value which caused casting to an `address` to
fail and revert, so the error occurs because the returned value is
malformed.

Thanks to @tkporter for walking me through the contracts to better
understand the scope of
https://github.com/hyperlane-xyz/hyperlane-monorepo/issues/2090.
pull/2400/head
Daniel Savu 1 year ago committed by GitHub
parent 186fcdab36
commit 1921c45885
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      rust/agents/relayer/src/msg/pending_message.rs

@ -150,7 +150,7 @@ impl PendingOperation for PendingMessage {
.destination_mailbox
.recipient_ism(self.message.recipient)
.await,
"fetching ISM address"
"fetching ISM address. Potentially malformed recipient ISM address."
);
let Some(metadata) = op_try!(

Loading…
Cancel
Save