diff --git a/crates/rpc-types/src/eth/transaction/request.rs b/crates/rpc-types/src/eth/transaction/request.rs index 5590126bbaf..167d51b327b 100644 --- a/crates/rpc-types/src/eth/transaction/request.rs +++ b/crates/rpc-types/src/eth/transaction/request.rs @@ -143,8 +143,8 @@ impl TransactionRequest { /// Sets the recipient address for the transaction. #[inline] - pub const fn to(mut self, to: Option
) -> Self { - self.to = to; + pub const fn to(mut self, to: Address) -> Self { + self.to = Some(to); self }