Skip to content

Commit

Permalink
fix-vglmr-remark-event
Browse files Browse the repository at this point in the history
  • Loading branch information
herryho committed Apr 7, 2023
1 parent 8d41ce3 commit b6d0f0b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
11 changes: 2 additions & 9 deletions pallets/slp/src/agents/moonbeam_agent/agent.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1148,15 +1148,8 @@ impl<T: Config> MoonbeamAgent<T> {
.ok_or(Error::<T>::DelegatorNotExist)?;

// Temporary wrapping remark event in Moonriver/Moonbeam for ease use of backend service.
let remark_call = if currency_id == MOVR {
MoonbeamCall::System(MoonbeamSystemCall::MoonriverRemarkWithEvent(Box::new(
query_id.encode(),
)))
} else {
MoonbeamCall::System(MoonbeamSystemCall::MoonbeamRemarkWithEvent(Box::new(
query_id.encode(),
)))
};
let remark_call =
MoonbeamCall::System(MoonbeamSystemCall::RemarkWithEvent(Box::new(query_id.encode())));

let call_batched_with_remark =
MoonbeamCall::Utility(Box::new(MoonbeamUtilityCall::BatchAll(Box::new(vec![
Expand Down
4 changes: 1 addition & 3 deletions pallets/slp/src/agents/moonbeam_agent/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,7 @@ pub enum MoonbeamXtokensCall<T: Config> {
#[derive(Encode, Decode, RuntimeDebug, Clone)]
pub enum MoonbeamSystemCall {
#[codec(index = 7)]
MoonriverRemarkWithEvent(Box<Vec<u8>>),
#[codec(index = 8)]
MoonbeamRemarkWithEvent(Box<Vec<u8>>),
RemarkWithEvent(Box<Vec<u8>>),
}

#[derive(PartialEq, Eq, Copy, Clone, Encode, Decode, RuntimeDebug, TypeInfo)]
Expand Down

0 comments on commit b6d0f0b

Please sign in to comment.