Skip to content

Question: How to update tests/mocks/JsonBindings.sol? #1248

@Wodann

Description

@Wodann

I've been trying to understand the developer workflow to update the tests/mocks/JsonBindings.sol file when changes are made to the tests/mocks/EIP712Types.sol file, but have been unsuccessful.

There are recent PRs that have successfully done so, but I cannot find any instructions in the README or codebase.

When I try to run forge bind-json in the root directory, the generated tests/mocks/JsonBindings.sol file does not include tests/mocks/EIP712Types.sol, rather I just get an empty JsonBindings:

// omitted lines for brevity

library JsonBindings {
  Vm constant vm = Vm(address(uint160(uint256(keccak256('hevm cheat code')))));
}

What command should I run and where to update the tests/mocks/JsonBindings.sol file?

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