Skip to content

Use WriteJSON Cheatcode #78

@ElliotFriedman

Description

@ElliotFriedman

foundry has a writeJSON cheatcode. This can be leveraged so that instead of needing to copy and paste addresses that are output on the terminal, the addresses can be written directly to their corresponding JSON file.

Example code here: https://github.com/volt-protocol/ethereum-credit-guild/blob/main/test/ECGTest.sol#L50-L82

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