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. Mirrors what forge does automatically. For artifacts with no linkReferences this behaves like Artifacts::bytecode_named and sends nothing.

The bb-generated UltraHonk verifiers are what goes through here: each links RelationsLib and ZKTranscriptLib, and deploy_honk_verifier is the call that links and deploys one.