Skip to content

feat(verify-bytecode): add support for libraries #7647

Open
@lucas-manuel

Description

@lucas-manuel

Component

Forge

Describe the feature you would like

Would like to be able to use the verify-bytecode command with contracts compiled with libraries with a --libraries flag.

Used the same syntax as whats in forge verify-contract to try it out but got this error:

forge verify-bytecode --constructor-args 00000000000000000000000002c3ea4e34c0cbd694d2adfa2c690eecbc1793ee 0x5aE329203E00f76891094DcfedD5Aca082a50e1b Pool \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/BorrowLogic.sol:BorrowLogic:0x68fB4530e156ED17cB849D19102892B7AF8cbeef \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/BridgeLogic.sol:BridgeLogic:0x813C6C11ac19e7E8aA4148d5C6EDF31a4a160867 \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/EModeLogic.sol:EModeLogic:0xC814B56BAaeE8574C169Cc0226C97466dab68c95 \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/FlashLoanLogic.sol:FlashLoanLogic:0xCC3037F5aef5831730A9AcB1739D0562117314C0 \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/LiquidationLogic.sol:LiquidationLogic:0xC0816EFC31779C697B18B3B68f1DfBeDe313e1fA \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/PoolLogic.sol:PoolLogic:0xD072fF8184E873a938cb15B20f2Ad5Cc1a02D8bf \
--libraries lib/aave-v3-core/contracts/protocol/libraries/logic/SupplyLogic.sol:SupplyLogic:0x4c83d30CE4D0f92A867C2006B33d9b102D29F707
error: unexpected argument '--libraries' found

  tip: to pass '--libraries' as a value, use '-- --libraries'

Usage: forge verify-bytecode --constructor-args <ARGS> <ADDRESS> <CONTRACT> [ROOT]

For more information, try '--help'.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions