From 3fd046c89f52b0c5ec5303ec4e0b328ded66d7cc Mon Sep 17 00:00:00 2001 From: Bryan Stitt Date: Wed, 25 Oct 2023 12:33:39 -0700 Subject: [PATCH] include backend_rpcs when fixing eth_sendRawTransaction arrays --- web3_proxy/src/app/mod.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web3_proxy/src/app/mod.rs b/web3_proxy/src/app/mod.rs index 4671b776..768a55a2 100644 --- a/web3_proxy/src/app/mod.rs +++ b/web3_proxy/src/app/mod.rs @@ -1177,9 +1177,16 @@ impl App { // no idea how we got an array here, but lets force this to just the txid // TODO: think about this more if value.get().starts_with('[') { + let backend_rpcs = web3_request + .backend_rpcs_used() + .iter() + .map(|x| x.name.as_str()) + .collect::>(); + error!( ?value, ?txid, + ?backend_rpcs, "unexpected array response from sendRawTransaction" ); response = ForwardedResponse::from(json!(txid));