Skip to content

chain sleep is broken with foundry  #16

@pandadefi

Description

@pandadefi

Environment information

ape: 0.5.1

Installed Plugins:
solidity 0.5.0
foundry 0.5.0
tokens 0.5.0
vyper 0.5.0
infura 0.5.0

foundryup: installed - anvil 0.1.0 (084ef3d 2022-09-19T00:09:09.381188Z)

  • Python Version: x.x.x
  • OS: macOS/linux/win

What went wrong?

Trying to use ape-foundry with veYFI here is the error I am getting:

tests/functional/test_extra_rewards.py E
WARNING:   File 'pydantic/main.py':342 in pydantic.main.BaseModel.__init__
  ???

        ValueError: 'pydantic/main.py' does not start with '/Users/panda/Repository/veYFI'

WARNING:   File 'pydantic/main.py':526 in pydantic.main.BaseModel.parse_obj
  ???

        ValueError: 'pydantic/main.py' does not start with '/Users/panda/Repository/veYFI'

Traceback:  File '/Users/panda/Repository/veYFI/tests/conftest.py':46 in setup_time
  chain.pending_timestamp += WEEK - (
        chain.pending_timestamp - (chain.pending_timestamp // WEEK * WEEK)
    )

Starting interactive mode. Type `exit` fail and halt current test.

That can be reproduced using: yearn/veYFI#196

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions