From 856f4e8e86f26c6e455b63c45de49b7afa728e94 Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Sat, 9 Jul 2022 04:28:23 +0000 Subject: [PATCH] getCode instead of balance --- TODO.md | 1 + web3-proxy/src/connection.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index 70d36bd5..b4e60d02 100644 --- a/TODO.md +++ b/TODO.md @@ -100,3 +100,4 @@ - [ ] flashbots specific methods - [ ] flashbots protect fast mode or not? probably fast matches most user's needs, but no reverts is nice. - [ ] https://docs.flashbots.net/flashbots-auction/searchers/advanced/rpc-endpoint#authentication maybe have per-user keys. or pass their header on if its set +- [ ] if no redis set, but public rate limits are set, exit with an error \ No newline at end of file diff --git a/web3-proxy/src/connection.rs b/web3-proxy/src/connection.rs index 2f9b26e4..86ad6a6d 100644 --- a/web3-proxy/src/connection.rs +++ b/web3-proxy/src/connection.rs @@ -199,7 +199,7 @@ impl Web3Connection { .wait_for_request_handle() .await .request( - "eth_getBalance", + "eth_getCode", ("0xdead00000000000000000000000000000000beef", "0x1"), ) .await;