(
config: &DVFConfig,
tx_id: &str,
)
| 172 | Err(ValidationError::from("Cannot determine create addresses")) |
| 173 | } |
| 174 | pub fn get_eth_debug_call_trace( |
| 175 | config: &DVFConfig, |
| 176 | tx_id: &str, |
| 177 | ) -> Result<CallFrame, ValidationError> { |
| 178 | debug!("Searching debug trace for {tx_id}"); |
| 179 | let request_body = json!({ |
| 180 | "jsonrpc": "2.0", |
| 181 | "method": "debug_traceTransaction", |
| 182 | "params": [tx_id, {"tracer": "callTracer"}], |
| 183 | "id": 1 |
| 184 | }); |
| 185 | let result = send_blocking_web3_post(config, &request_body)?; |
| 186 | // Parse the response as a JSON list |
| 187 | let trace: CallFrame = serde_json::from_value(result)?; |
| 188 | Ok(trace) |
| 189 | } |
| 190 | |
| 191 | pub fn get_eth_debug_trace( |
| 192 | config: &DVFConfig, |
no test coverage detected