add web3_bundlerVersion with the same cost as web3_clientVersion

This commit is contained in:
Bryan Stitt 2023-09-02 10:30:42 -07:00
parent 8d51a1b4dd
commit 5ce1b5bace
2 changed files with 3 additions and 1 deletions

@ -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::<Box<RawValue>>(

@ -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,