From 75de83b49b91e73649c27927c87fb2f75b369d16 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 1 Nov 2023 10:33:00 -0700 Subject: [PATCH] Revert "don't change for now" This reverts commit 8ad2d20f43fed40f56e48a817228b48e99cb5fee. --- web3_proxy/src/block_number.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/web3_proxy/src/block_number.rs b/web3_proxy/src/block_number.rs index 2fb5eaad..31a40085 100644 --- a/web3_proxy/src/block_number.rs +++ b/web3_proxy/src/block_number.rs @@ -187,13 +187,12 @@ pub async fn clean_block_number<'a>( } }; - // TODO: this scares me. we need it, so bring it back soon. but for now i think its breaking things - // // if we changed "latest" to an actual block, update the params to match - // // TODO: should we do hash or number? some functions work with either, but others need a number :cry: - // if change { - // trace!(old=%x, new=%block.num(), "changing block number"); - // *x = json!(block.num()); - // } + // if we changed "latest" to an actual block, update the params to match + // TODO: should we do hash or number? some functions work with either, but others need a number :cry: + if change { + trace!(old=%x, new=%block.num(), "changing block number"); + *x = json!(block.num()); + } Ok(block) }