Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Allow tracing message_transact transaction #1397

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions node/runtime/pangolin/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -655,12 +655,12 @@ sp_api::impl_runtime_apis! {
#[cfg(feature = "evm-tracing")]
{
use dp_evm_tracer::tracer::EvmTracer;
use darwinia_ethereum::Call::transact;
use darwinia_ethereum::Call::{transact, message_transact};
// Apply the a subset of extrinsics: all the substrate-specific or ethereum
// transactions that preceded the requested transaction.
for ext in _extrinsics.into_iter() {
let _ = match &ext.0.function {
Call::Ethereum(transact { transaction }) => {
Call::Ethereum(transact { transaction }) | Call::Ethereum(message_transact { transaction}) => {
if transaction == _traced_transaction {
EvmTracer::new().trace(|| Executive::apply_extrinsic(ext));
return Ok(());
Expand Down
4 changes: 2 additions & 2 deletions node/runtime/pangoro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -565,12 +565,12 @@ sp_api::impl_runtime_apis! {
#[cfg(feature = "evm-tracing")]
{
use dp_evm_tracer::tracer::EvmTracer;
use darwinia_ethereum::Call::transact;
use darwinia_ethereum::Call::{transact, message_transact};
// Apply the a subset of extrinsics: all the substrate-specific or ethereum
// transactions that preceded the requested transaction.
for ext in _extrinsics.into_iter() {
let _ = match &ext.0.function {
Call::Ethereum(transact { transaction }) => {
Call::Ethereum(transact { transaction }) | Call::Ethereum(message_transact { transaction}) => {
if transaction == _traced_transaction {
EvmTracer::new().trace(|| Executive::apply_extrinsic(ext));
return Ok(());
Expand Down