Skip to content

Commit

Permalink
Avoid decoding the transfer payload when trying to get a message from…
Browse files Browse the repository at this point in the history
… a non gateway chain in order to avoid errors when attempting to parse it (#1263)
  • Loading branch information
M-Picco authored Nov 23, 2023
1 parent 4ba04d5 commit c05113b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export async function getUnsignedMessageFromNonCosmos(
hash: string,
chain: ChainName,
): Promise<UnsignedMessage> {
const message = await wh.getMessage(hash, chain);
const message = await wh.getMessage(hash, chain, false);
if (!message.payload)
throw new Error(`Missing payload from message ${hash} on chain ${chain}`);
const decoded: GatewayTransferMsg = JSON.parse(
Expand Down

0 comments on commit c05113b

Please sign in to comment.