Skip to content

Commit

Permalink
feat: new cardano rpc req format
Browse files Browse the repository at this point in the history
  • Loading branch information
hai-kreate authored and serejke committed Aug 24, 2023
1 parent c269507 commit ef499c0
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions rust/chains/hyperlane-cardano/src/rpc/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,10 @@ impl CardanoRpc {
"0x{}",
parsed_metadata.origin_mailbox.encode_hex::<String>()
),
checkpoint_root: parsed_metadata.checkpoint_root.encode_hex::<String>(),
checkpoint_root: format!(
"0x{}",
parsed_metadata.checkpoint_root.encode_hex::<String>()
),
checkpoint_index: parsed_metadata.checkpoint_index,
message: Box::new(EstimateInboundMessageFeeRequestMessage {
version: message.version as u32,
Expand All @@ -132,7 +135,7 @@ impl CardanoRpc {
sender: format!("0x{}", message.sender.encode_hex::<String>()),
destination_domain: message.destination,
recipient: format!("0x{}", message.recipient.encode_hex::<String>()),
message: message.body.encode_hex(),
message: format!("0x{}", message.body.encode_hex::<String>()),
}),
signatures: parsed_metadata.signatures,
},
Expand All @@ -154,7 +157,10 @@ impl CardanoRpc {
"0x{}",
parsed_metadata.origin_mailbox.encode_hex::<String>()
),
checkpoint_root: parsed_metadata.checkpoint_root.encode_hex::<String>(),
checkpoint_root: format!(
"0x{}",
parsed_metadata.checkpoint_root.encode_hex::<String>()
),
checkpoint_index: parsed_metadata.checkpoint_index,
message: Box::new(EstimateInboundMessageFeeRequestMessage {
version: message.version as u32,
Expand All @@ -163,7 +169,7 @@ impl CardanoRpc {
sender: format!("0x{}", message.sender.encode_hex::<String>()),
destination_domain: message.destination,
recipient: format!("0x{}", message.recipient.encode_hex::<String>()),
message: message.body.encode_hex(),
message: format!("0x{}", message.body.encode_hex::<String>()),
}),
//
signatures: parsed_metadata.signatures,
Expand Down

0 comments on commit ef499c0

Please sign in to comment.