diff --git a/rust/chains/hyperlane-cardano/src/rpc/mod.rs b/rust/chains/hyperlane-cardano/src/rpc/mod.rs index d798208359..10e501dd1f 100644 --- a/rust/chains/hyperlane-cardano/src/rpc/mod.rs +++ b/rust/chains/hyperlane-cardano/src/rpc/mod.rs @@ -123,7 +123,10 @@ impl CardanoRpc { "0x{}", parsed_metadata.origin_mailbox.encode_hex::() ), - checkpoint_root: parsed_metadata.checkpoint_root.encode_hex::(), + checkpoint_root: format!( + "0x{}", + parsed_metadata.checkpoint_root.encode_hex::() + ), checkpoint_index: parsed_metadata.checkpoint_index, message: Box::new(EstimateInboundMessageFeeRequestMessage { version: message.version as u32, @@ -132,7 +135,7 @@ impl CardanoRpc { sender: format!("0x{}", message.sender.encode_hex::()), destination_domain: message.destination, recipient: format!("0x{}", message.recipient.encode_hex::()), - message: message.body.encode_hex(), + message: format!("0x{}", message.body.encode_hex::()), }), signatures: parsed_metadata.signatures, }, @@ -154,7 +157,10 @@ impl CardanoRpc { "0x{}", parsed_metadata.origin_mailbox.encode_hex::() ), - checkpoint_root: parsed_metadata.checkpoint_root.encode_hex::(), + checkpoint_root: format!( + "0x{}", + parsed_metadata.checkpoint_root.encode_hex::() + ), checkpoint_index: parsed_metadata.checkpoint_index, message: Box::new(EstimateInboundMessageFeeRequestMessage { version: message.version as u32, @@ -163,7 +169,7 @@ impl CardanoRpc { sender: format!("0x{}", message.sender.encode_hex::()), destination_domain: message.destination, recipient: format!("0x{}", message.recipient.encode_hex::()), - message: message.body.encode_hex(), + message: format!("0x{}", message.body.encode_hex::()), }), // signatures: parsed_metadata.signatures,