Skip to content

Commit

Permalink
style(anvil): return method not found for debug_traceTransaction (#1786)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Jun 1, 2022
1 parent 8216a10 commit aa725da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions anvil/src/eth/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ use anvil_core::{
},
types::{EvmMineOptions, Forking, GethDebugTracingOptions, Index, Work},
};
use anvil_rpc::response::ResponseResult;
use anvil_rpc::{error::RpcError, response::ResponseResult};
use ethers::{
abi::ethereum_types::H64,
prelude::TxpoolInspect,
Expand Down Expand Up @@ -1143,7 +1143,8 @@ impl EthApi {
_opts: GethDebugTracingOptions,
) -> Result<Vec<Trace>> {
node_info!("debug_traceTransaction");
Err(BlockchainError::RpcUnimplemented)
// return `MethodNotFound` until implemented <https://github.com/foundry-rs/foundry/issues/1737>
Err(RpcError::method_not_found().into())
}

/// Returns traces for the transaction hash via parity's tracing endpoint
Expand Down

0 comments on commit aa725da

Please sign in to comment.