Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Openzeppelin CLI removes solidity library when deploying non-upgradeable version of a contract #1569

@JUDOKICK

Description

@JUDOKICK

I have a contract that I intend to deploy as upgradeable using the OZ CLI as well as with oz capable factories I've written.

When I deploy the using
oz deploy -n development and I choose regular. It correctly deploys the contract and links the library associated.

However, when I run the same deployment using upgradeable OZ decides to remove the library contract but it correctly deploys the contract.

If however, I try to deploy the contract before running a "regular" deployment. It fails with "ContractFactroy deployment failed with error: The data field must be HEX encoded data."

No idea why or how this is the case. But it seems to me that OZ does not know how to deploy Solidity Library contracts if they have never been deployed before on a "regular" contract

I am not sure if this is a known bug or not, but I will try to create a minimalist repo to demonstrate the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions