pub async fn get_factory_dep(
        &mut self,
        hash: H256,
    ) -> DalResult<Option<(Vec<u8>, L2BlockNumber)>> {
        let row = sqlx::query!(
            r#"
            SELECT
                bytecode,
                miniblock_number
            FROM
                factory_deps
            WHERE
                bytecode_hash = $1
            "#,
            hash.as_bytes(),
        )
        .instrument("get_factory_dep")
        .with_arg("hash", &hash)
        .fetch_optional(self.storage)
        .await?;

        Ok(row.map(|row| (row.bytecode, L2BlockNumber(row.miniblock_number as u32))))
    }
Given bytecode hash, returns bytecode and L2 block number at which it was inserted.
core/lib/dal/src/storage_web3_dal.rs