From a3d85d8f21cb0b69b6528f1f5173e1a25f770948 Mon Sep 17 00:00:00 2001 From: David Salami Date: Tue, 8 Oct 2024 08:48:20 +0000 Subject: [PATCH] add some comments --- modules/ismp/pallets/token-gateway-inspector/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/ismp/pallets/token-gateway-inspector/src/lib.rs b/modules/ismp/pallets/token-gateway-inspector/src/lib.rs index ee6f477f..39bdb03b 100644 --- a/modules/ismp/pallets/token-gateway-inspector/src/lib.rs +++ b/modules/ismp/pallets/token-gateway-inspector/src/lib.rs @@ -168,6 +168,9 @@ pub mod pallet { pub fn inspect_request(post: &PostRequest) -> Result<(), ismp::Error> { let PostRequest { body, from, to, source, dest, nonce, .. } = post.clone(); + // Token Gateway contracts on EVM chains are immutable and non upgradeable + // As long as the initial deployment is valid + // it's impossible to send malicious requests if source.is_evm() && dest.is_evm() { return Ok(()) } @@ -219,6 +222,9 @@ pub mod pallet { pub fn handle_timeout(post: &PostRequest) -> Result<(), ismp::Error> { let PostRequest { body, from, to, source, dest, nonce, .. } = post.clone(); + // Token Gateway contracts on EVM chains are immutable and non upgradeable + // As long as the initial deployment is valid + // it's impossible to send malicious requests if source.is_evm() && dest.is_evm() { return Ok(()) }