Skip to content

Commit a90c895

Browse files
authored
fix: comment on encoding in slow fill (#1053)
Signed-off-by: Reinis Martinsons <[email protected]>
1 parent 9dbc340 commit a90c895

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

programs/svm-spoke/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ pub mod svm_spoke {
717717
/// - proof: Inclusion proof for this leaf in slow relay root in root bundle.
718718
/// Note: slow_fill_leaf, _root_bundle_id, and proof are optional parameters. If None for any of these is passed,
719719
/// the caller must load them via the instruction_params account.
720+
/// Note: When verifying the slow fill leaf, the relay data is hashed using AnchorSerialize::serialize that encodes
721+
/// output token amounts to little-endian format while input token amount preserves its big-endian encoding as it
722+
/// is passed as [u8; 32] array.
720723
pub fn execute_slow_relay_leaf<'info>(
721724
ctx: Context<'_, '_, '_, 'info, ExecuteSlowRelayLeaf<'info>>,
722725
_relay_hash: [u8; 32],

0 commit comments

Comments
 (0)