Skip to main content

read_compilation_source

Function read_compilation_source 

Source
pub fn read_compilation_source(
    compilation: &Value,
    source_id: u64,
) -> Option<String>
Expand description

Returns the contents of a source embedded in an ETHDebug compilation object.

Some artifacts inline each source under contents (older builds used content); when they do, a frontend can show source without reading the file, which is the only option for a host without a filesystem.