diff --git a/rpc/src/eth_pubsub.rs b/rpc/src/eth_pubsub.rs index 80d8b584b5..2eb69fa3c9 100644 --- a/rpc/src/eth_pubsub.rs +++ b/rpc/src/eth_pubsub.rs @@ -108,9 +108,14 @@ impl EthPubSubApi where params: Option ) -> (Option, Option) { if let Some(Params::Logs(f)) = params { + let to_block: Option = if f.to_block.is_some() { + self.native_block_number(f.to_block).unwrap_or(None) + } else { + None + }; return ( self.native_block_number(f.from_block).unwrap_or(None), - self.native_block_number(f.to_block).unwrap_or(None) + to_block ); } (None, None)