Skip to main content

load_linked_bytecode

Function load_linked_bytecode 

Source
pub async fn load_linked_bytecode<P: Provider>(
    provider: &P,
    artifacts: &Artifacts,
    file: &str,
    contract: &str,
    sender: Option<Address>,
) -> Result<Bytes>
Expand description

Load a contract’s creation bytecode, deploying and linking any external libraries it references (the bb-generated UltraHonk verifiers link ZKTranscriptLib). Mirrors what forge does automatically. For artifacts with no linkReferences this behaves like Artifacts::bytecode_named and sends nothing.