Skip to content
Open
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
5 changes: 5 additions & 0 deletions .changeset/solx-dwarf-debug-info.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@nomicfoundation/edr": minor
---

Added support for Solidity stack traces from solx-compiled artifacts.
51 changes: 45 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions crates/edr_napi/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ impl Provider {
let compiler_output = serde_json::from_value(compiler_output)
.map_err(|error| napi::Error::from_reason(error.to_string()))?;

// `addCompilationResult` is called by both HH2 (via the legacy
// `hardhat_addCompilationResult` JSON-RPC method) and HH3
// (internally, for its provider's in-process compile flow).
// Both feed solc artifacts; solx reaches EDR through HH3's
// `BuildInfoConfig` (`runSolidityTests` / `withContracts`).
// The compiler is derived from the bytecode variant — no
// separate tag needs to be threaded in.
let contracts = match create_models_and_decode_bytecodes(
solc_version,
&compiler_input,
Expand Down
1 change: 1 addition & 0 deletions crates/edr_provider/tests/integration/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@ mod eth_request_serialization;
mod hardhat_request_serialization;
mod issues;
mod rip7212;
mod solx_stack_trace;
mod timestamp;
Loading
Loading