Skip to content

Commit

Permalink
add some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Wizdave97 committed Oct 8, 2024
1 parent 72bbdc4 commit a3d85d8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/ismp/pallets/token-gateway-inspector/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down Expand Up @@ -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(())
}
Expand Down

0 comments on commit a3d85d8

Please sign in to comment.