diff --git a/substrate/frame/revive/Cargo.toml b/substrate/frame/revive/Cargo.toml index 0b1aada86087..12f486802f0b 100644 --- a/substrate/frame/revive/Cargo.toml +++ b/substrate/frame/revive/Cargo.toml @@ -20,6 +20,7 @@ targets = ["x86_64-unknown-linux-gnu"] codec = { features = ["derive", "max-encoded-len"], workspace = true } derive_more = { workspace = true } environmental = { workspace = true } +ethabi = { workspace = true } ethereum-types = { workspace = true, features = ["codec", "rlp", "serialize"] } hex = { workspace = true } impl-trait-for-tuples = { workspace = true } @@ -27,7 +28,6 @@ log = { workspace = true } paste = { workspace = true } polkavm = { version = "0.18.0", default-features = false } rlp = { workspace = true } -ethabi = { workspace = true } scale-info = { features = ["derive"], workspace = true } serde = { features = [ "alloc", @@ -76,6 +76,7 @@ default = ["std"] std = [ "codec/std", "environmental/std", + "ethabi/std", "ethereum-types/std", "frame-benchmarking?/std", "frame-support/std", diff --git a/substrate/frame/revive/src/debug.rs b/substrate/frame/revive/src/debug.rs index a102d5a0c7f4..ac9636466617 100644 --- a/substrate/frame/revive/src/debug.rs +++ b/substrate/frame/revive/src/debug.rs @@ -51,7 +51,7 @@ pub trait Tracing { /// Called when a contract call terminates with an error fn exit_child_span_with_error(&mut self, error: DispatchError, gas_left: Weight); - /// Takes the traces collected by the tracer and resets them. + /// Collects and returns the traces recorded by the tracer, then clears them. fn collect_traces(&mut self) -> Traces; } diff --git a/substrate/frame/revive/src/evm/api/debug_rpc_types.rs b/substrate/frame/revive/src/evm/api/debug_rpc_types.rs index da1b15fef891..3350d10f4e22 100644 --- a/substrate/frame/revive/src/evm/api/debug_rpc_types.rs +++ b/substrate/frame/revive/src/evm/api/debug_rpc_types.rs @@ -102,7 +102,7 @@ impl<'de> Deserialize<'de> for TracerConfig { } #[test] -fn test_deserialize_call_tracer_with_logs_true() { +fn test_tracer_config_serialization() { let tracers = vec![ (r#"{"tracer": "callTracer"}"#, TracerConfig::CallTracer { with_logs: true }), (