Skip to content

[CLI] Rewrite solc --link to use LinkerObject #10308

@cameel

Description

@cameel

Extracted from #10297 (comment):

@axic

Why do we have this messy code here and why isn't this part of LinkerObject? Also solc-js has this messy code duplicated.

I would prefer a clear way of adding a LinkerObject::parse(bytes) feature and unit testing, and using LinkerObject::parse(bin).link(addresses) in the cli.

You can take inspiration from https://github.com/ethereum/solc-js/blob/master/linker.js (see findLinkReferences).

Metadata

Metadata

Assignees

No one assigned

    Labels

    closed due inactivityThe issue/PR was automatically closed due to inactivity.easy difficultygood first issue candidateCould be a "good first issue" but something is blocking it or it has open questions.staleThe issue/PR was marked as stale because it has been open for too long.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions