Skip to content

Commit ed5dd9a

Browse files
fmt
1 parent 5b63035 commit ed5dd9a

File tree

1 file changed

+7
-6
lines changed
  • monad-rpc/src/handlers/eth

1 file changed

+7
-6
lines changed

monad-rpc/src/handlers/eth/txn.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,12 +352,13 @@ pub async fn monad_eth_sendRawTransactionSync<T: Triedb>(
352352
.filter(|&t| t > 0 && t <= eth_send_raw_transaction_sync_max_timeout_ms)
353353
.unwrap_or(eth_send_raw_transaction_sync_default_timeout_ms);
354354

355-
let tx = validate_and_decode_tx(&params.hex_tx.0, chain_id, allow_unprotected_txs).map_err(
356-
|e| match e.code {
357-
-32603 => JsonRpcError::tx_sync_unready(),
358-
_ => e,
359-
},
360-
)?;
355+
let tx =
356+
validate_and_decode_tx(&params.hex_tx.0, chain_id, allow_unprotected_txs).map_err(|e| {
357+
match e.code {
358+
-32603 => JsonRpcError::tx_sync_unready(),
359+
_ => e,
360+
}
361+
})?;
361362

362363
let tx_hash = *tx.tx_hash();
363364
debug!(name = "sendRawTransactionSync", txn_hash = ?tx_hash);

0 commit comments

Comments
 (0)