From 5ce1b5bace7767d1e34b77b1dbba475029505dc0 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 2 Sep 2023 10:30:42 -0700 Subject: [PATCH] add web3_bundlerVersion with the same cost as web3_clientVersion --- web3_proxy/src/app/mod.rs | 3 ++- web3_proxy/src/compute_units.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index e69140d4..12ab305a 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1337,7 +1337,8 @@ impl Web3ProxyApp { | "eth_estimateUserOperationGas" | "eth_getUserOperationByHash" | "eth_getUserOperationReceipt" - | "eth_supportedEntryPoints") => match self.bundler_4337_rpcs.as_ref() { + | "eth_supportedEntryPoints" + | "web3_bundlerVersion") => match self.bundler_4337_rpcs.as_ref() { Some(bundler_4337_rpcs) => { let x = bundler_4337_rpcs .try_send_all_synced_connections::>( diff --git a/web3_proxy/src/compute_units.rs b/web3_proxy/src/compute_units.rs index ef1a64c6..e6d666f4 100644 --- a/web3_proxy/src/compute_units.rs +++ b/web3_proxy/src/compute_units.rs @@ -120,6 +120,7 @@ impl ComputeUnit { (_, "trace_transaction") => 26, (_, "invalid_method") => 100, (_, "web3_clientVersion") => 15, + (_, "web3_bundlerVersion") => 15, (_, "web3_sha3") => 15, (_, "ots_getInternalOperations") => 1000, (_, "ots_hasCode") => 1000,