Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruvja committed Oct 27, 2024
1 parent aee98fc commit 61bd6a4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions solana/solana-ibc/programs/solana-ibc/src/transfer/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,10 @@ fn call_bridge_escrow(
// The memo is a string and the structure is as follow:
// "<accounts count>,<AccountKey1> ..... <AccountKeyN>,<intent_id>,<memo>"
//
// The relayer would parse the memo and pass the relevant accounts The
// intent_id and memo needs to be stripped
// The relayer would parse the memo and pass the relevant accounts.
//
// The intent_id and memo needs to be stripped so that it can be sent to the
// bridge escrow contract.
let (intent_id, memo) =
parse_bridge_memo(data.memo.as_ref()).ok_or_else(|| {
let err = ibc::TokenTransferError::Other("Invalid memo".into());
Expand All @@ -425,7 +427,7 @@ fn call_bridge_escrow(

// This is the 8 byte discriminant since the program is written in
// anchor. it is hash of "<namespace>:<function_name>" which is
// "global:on_receive_transfer" respectively.
// "global:on_receive_transfer" in our case.
const INSTRUCTION_DISCRIMINANT: [u8; 8] =
[149, 112, 68, 208, 4, 206, 248, 125];

Expand Down

0 comments on commit 61bd6a4

Please sign in to comment.