From 9d67a253280ef686b4047492c972965153d02293 Mon Sep 17 00:00:00 2001 From: tgmichel Date: Fri, 20 Aug 2021 16:25:45 +0200 Subject: [PATCH] Fix `trace_transaction_before_version_3` --- client/rpc/debug/src/lib.rs | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/client/rpc/debug/src/lib.rs b/client/rpc/debug/src/lib.rs index 88c6e6f0da..0d0326e728 100644 --- a/client/rpc/debug/src/lib.rs +++ b/client/rpc/debug/src/lib.rs @@ -261,12 +261,16 @@ where Ok(proxy::v1::Result::V2(proxy::v1::ResultV2::Single)) } else if api_version == 2 { - let _result = api - .trace_transaction(&parent_block_id, &header, ext, &transaction) - .map_err(|e| { - internal_err(format!("Runtime api access error: {:?}", e)) - })? - .map_err(|e| internal_err(format!("DispatchError: {:?}", e)))?; + #[allow(deprecated)] + let _result = api.trace_transaction_before_version_3( + &parent_block_id, + &header, + ext, + &transaction, + trace_type, + ) + .map_err(|e| internal_err(format!("Runtime api access error: {:?}", e)))? + .map_err(|e| internal_err(format!("DispatchError: {:?}", e)))?; Ok(proxy::v1::Result::V2(proxy::v1::ResultV2::Single)) } else {