Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
pgherveou committed Jan 3, 2025
1 parent f7f496b commit 25f88be
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions substrate/frame/revive/rpc/src/apis/debug_apis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pub trait DebugRpc {
async fn trace_block_by_number(
&self,
block: Option<BlockNumberOrTag>,
tracer: Tracer,
tracer_config: TracerConfig,
) -> RpcResult<Vec<TransactionTrace>>;

/// Returns a transaction's traces by replaying it. This method provides a detailed
Expand All @@ -30,6 +30,6 @@ pub trait DebugRpc {
async fn trace_transaction(
&self,
transaction_hash: H256,
tracer: Tracer,
tracer_config: TracerConfig,
) -> RpcResult<CallTrace>;
}
2 changes: 1 addition & 1 deletion substrate/frame/revive/src/debug.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub use crate::{
BalanceOf,
};
use crate::{Config, DispatchError, GasMeter, LOG_TARGET};
use alloc::vec::Vec;
use alloc::{format, vec::Vec};
use sp_core::{H160, H256, U256};

/// Umbrella trait for all interfaces that serves for debugging.
Expand Down
7 changes: 6 additions & 1 deletion substrate/frame/revive/src/evm/api/debug_rpc_types.rs
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
#![allow(missing_docs)]
use crate::{evm::Bytes, ExecReturnValue, Weight};
use alloc::vec::Vec;
use alloc::{string::String, vec::Vec};
use codec::{Decode, Encode};
use scale_info::TypeInfo;
use serde::{Deserialize, Serialize};
use sp_core::{H160, H256, U256};

/// Tracer configuration used to trace calls.
#[derive(Debug, Clone, Encode, Decode, Serialize, Deserialize)]
pub enum TracerConfig {
CallTracer { with_logs: bool },
}
/// The type of call that was executed.
#[derive(
Default, TypeInfo, Encode, Decode, Serialize, Deserialize, Eq, PartialEq, Clone, Debug,
Expand Down

0 comments on commit 25f88be

Please sign in to comment.