Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
style: 🎨 fmt
  • Loading branch information
manuelmauro committed Feb 25, 2026
commit 2012b03ad207e857440e8142fdd4074b85b3f993
6 changes: 5 additions & 1 deletion client/rpc-core/src/types/transaction_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,11 @@ mod tests {
);

// Verify it's a reasonable size for a minimal transaction
assert!(size < 200, "Size {} should be reasonable for minimal tx", size);
assert!(
size < 200,
"Size {} should be reasonable for minimal tx",
size
);
}

#[test]
Expand Down
6 changes: 3 additions & 3 deletions client/rpc/src/eth/submit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ where
}

pub async fn send_transaction(&self, request: TransactionRequest) -> RpcResult<H256> {
request.validate_size().map_err(|msg| {
crate::err(jsonrpsee::types::error::INVALID_PARAMS_CODE, &msg, None)
})?;
request
.validate_size()
.map_err(|msg| crate::err(jsonrpsee::types::error::INVALID_PARAMS_CODE, &msg, None))?;

let from = match request.from {
Some(from) => from,
Expand Down
Loading