From 6da0092b369539a9b3037c6408a26bab30e54a0f Mon Sep 17 00:00:00 2001 From: David Salami Date: Thu, 14 Nov 2024 12:38:27 +0000 Subject: [PATCH] nit --- parachain/runtimes/gargantua/src/ismp.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/parachain/runtimes/gargantua/src/ismp.rs b/parachain/runtimes/gargantua/src/ismp.rs index 8a26402c8..2bf189a70 100644 --- a/parachain/runtimes/gargantua/src/ismp.rs +++ b/parachain/runtimes/gargantua/src/ismp.rs @@ -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 => {