From 3f932b9d5784a7189fab2229790a5d1cfd4fa63a Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Tue, 8 Aug 2023 15:58:21 -0700 Subject: [PATCH] also bump cli version --- Cargo.lock | 2 +- web3_proxy/src/block_number.rs | 1 + web3_proxy/src/frontend/users/mod.rs | 2 +- web3_proxy_cli/Cargo.toml | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b29498e7..e1bec6fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7324,7 +7324,7 @@ dependencies = [ [[package]] name = "web3_proxy_cli" -version = "1.42.3" +version = "1.42.4" dependencies = [ "env_logger", "parking_lot", diff --git a/web3_proxy/src/block_number.rs b/web3_proxy/src/block_number.rs index 0bd78cb8..25473ea2 100644 --- a/web3_proxy/src/block_number.rs +++ b/web3_proxy/src/block_number.rs @@ -435,6 +435,7 @@ mod test { } ); + // "latest" should have been changed to the block number assert_eq!(params.get(1), Some(&json!(head_block.number()))); } } diff --git a/web3_proxy/src/frontend/users/mod.rs b/web3_proxy/src/frontend/users/mod.rs index b393d79c..c3b888dc 100644 --- a/web3_proxy/src/frontend/users/mod.rs +++ b/web3_proxy/src/frontend/users/mod.rs @@ -92,7 +92,7 @@ pub async fn user_post( .filter(referrer::Column::ReferralCode.like(&x)) .one(&txn) .await? - .web3_context(format!("posted referral code does not exist"))?; + .web3_context("posted referral code does not exist")?; // make sure the user doesn't already have a referral code set if let Some(existing_referee) = referee::Entity::find() diff --git a/web3_proxy_cli/Cargo.toml b/web3_proxy_cli/Cargo.toml index d1ce5ee4..82540aa1 100644 --- a/web3_proxy_cli/Cargo.toml +++ b/web3_proxy_cli/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "web3_proxy_cli" -version = "1.42.3" +version = "1.42.4" edition = "2021" default-run = "web3_proxy_cli"