Skip to content

Commit

Permalink
fix: replace qp encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisht13 committed Nov 14, 2024
1 parent 462ad8c commit 91f2172
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions packages/relayer/src/command.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
use anyhow::{anyhow, Result};
use ethers::types::{Bytes, U256};
use relayer_utils::{
extract_template_vals_from_command, u256_to_bytes32_little,
};
use relayer_utils::{extract_template_vals_from_command, u256_to_bytes32_little};

use crate::{constants::COMMAND_FIELDS, model::RequestModel};

Expand Down Expand Up @@ -38,7 +36,10 @@ pub async fn get_encoded_command_params(email: &str, request: RequestModel) -> R
.map(String::from)
.collect();

let command_params = extract_template_vals_from_command(email, command_template)?;
// Remove \r\n from email
let email = email.replace("=\r\n", "");

let command_params = extract_template_vals_from_command(&email, command_template)?;

let command_params_encoded = command_params
.iter()
Expand Down

0 comments on commit 91f2172

Please sign in to comment.