pub fn parse_foundry_creation_bytecode(
artifact_json: &str,
) -> Result<Vec<u8>, String>Expand description
Extract a foundry artifact’s creation bytecode (bytecode.object) from its
JSON. The artifact is whatever was placed at the leaf bytecode.object in
the standard foundry out/<File>.sol/<Contract>.json shape.
§Errors
Returns an Err if the JSON is malformed, lacks bytecode.object, or the
hex fails to decode.