Skip to main content

load_foundry_creation_bytecode

Function load_foundry_creation_bytecode 

Source
pub fn load_foundry_creation_bytecode(
    dir: &Path,
    file: &str,
    contract: &str,
) -> Result<Vec<u8>, String>
Expand description

Load a foundry build artifact from an out/ tree at dir: dir/<File>.sol/<Contract>.json, and return its creation bytecode.

ยงErrors

Returns an Err if the file cannot be read or its creation bytecode parsed.