Skip to content

Commit

Permalink
Fix trace_transaction_before_version_3 (#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
tgmichel committed Aug 20, 2021
1 parent 9707554 commit 894b751
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions client/rpc/debug/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 894b751

Please sign in to comment.