Skip to content

Commit

Permalink
Remove redundant relayer id
Browse files Browse the repository at this point in the history
  • Loading branch information
Dzejkop committed Dec 6, 2023
1 parent c231530 commit bc37a74
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions src/server/routes/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ use crate::types::TransactionPriority;
#[derive(Debug, Default, Clone, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct SendTxRequest {
pub relayer_id: String,
pub to: Address,
#[serde(with = "crate::serde_utils::decimal_u256")]
pub value: U256,
Expand Down Expand Up @@ -92,7 +91,7 @@ pub async fn send_tx(
req.value,
req.gas_limit,
req.priority,
&req.relayer_id,
&api_token.relayer_id,
)
.await?;

Expand Down
1 change: 0 additions & 1 deletion tests/send_many_txs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ async fn send_many_txs() -> eyre::Result<()> {
.send_tx(
&api_key,
&SendTxRequest {
relayer_id: relayer_id.clone(),
to: ARBITRARY_ADDRESS,
value,
gas_limit: U256::from(21_000),
Expand Down
1 change: 0 additions & 1 deletion tests/send_tx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ async fn send_tx() -> eyre::Result<()> {
.send_tx(
&api_key,
&SendTxRequest {
relayer_id,
to: ARBITRARY_ADDRESS,
value,
gas_limit: U256::from(21_000),
Expand Down

0 comments on commit bc37a74

Please sign in to comment.