include backend_rpcs when fixing eth_sendRawTransaction arrays

This commit is contained in:
Bryan Stitt 2023-10-25 12:33:39 -07:00
parent 3aef84d32b
commit 3fd046c89f

@ -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::<Vec<_>>();
error!(
?value,
?txid,
?backend_rpcs,
"unexpected array response from sendRawTransaction"
);
response = ForwardedResponse::from(json!(txid));