Skip to content

Commit

Permalink
Fix slp construct_xcm_message
Browse files Browse the repository at this point in the history
  • Loading branch information
hqwangningbo committed Jun 18, 2024
1 parent c493a72 commit 0418abf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pallets/slp/src/agents/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -583,15 +583,15 @@ impl<T: Config> Pallet<T> {
require_weight_at_most: transact_weight,
call: call.into(),
};
xcm_message.push(transact);
xcm_message.insert(2, transact);
match (query_id, notify_call_weight) {
(Some(query_id), Some(notify_call_weight)) => {
let report_transact_status_instruct = Self::get_report_transact_status_instruct(
query_id,
notify_call_weight,
currency_id,
);
xcm_message.push(report_transact_status_instruct);
xcm_message.insert(3, report_transact_status_instruct);
},
_ => {},
};
Expand Down

0 comments on commit 0418abf

Please sign in to comment.