Skip to content

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Nov 14, 2024
1 parent 8f75f05 commit 6da0092
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions parachain/runtimes/gargantua/src/ismp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,12 @@ impl IsmpModule for ProxyModule {
return Ok(());
}

let from = match &response {
Response::Post(post) => &post.source_module(),
let dest = match &response {
Response::Post(post) => &post.destination_module(),
Response::Get(resp) => &resp.get.from,
};

let pallet_id = ModuleId::from_bytes(from).map_err(|err| Error::Custom(err.to_string()))?;
let pallet_id = ModuleId::from_bytes(dest).map_err(|err| Error::Custom(err.to_string()))?;

match pallet_id {
pallet_ismp_demo::PALLET_ID => {
Expand Down

0 comments on commit 6da0092

Please sign in to comment.