From 2a714acc30a08ac47a2149b470b921c59e022fbb Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 28 Jun 2023 19:19:36 -0700 Subject: [PATCH] deref --- web3_proxy/src/app/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 6e1668bd..d213c5ff 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1642,7 +1642,7 @@ impl Web3ProxyApp { block, cache_errors, } => { - let block_depth = (head_block.number().saturating_sub(block.num())).as_u64(); + let block_depth = (head_block.number().saturating_sub(*block.num())).as_u64(); if block_depth < self.config.archive_depth { request_metadata @@ -1663,7 +1663,7 @@ impl Web3ProxyApp { to_block, cache_errors, } => { - let block_depth = (head_block.number().saturating_sub(from_block.num())).as_u64(); + let block_depth = (head_block.number().saturating_sub(*from_block.num())).as_u64(); if block_depth < self.config.archive_depth { request_metadata