ape-foundry icon indicating copy to clipboard operation
ape-foundry copied to clipboard

chain sleep is broken with foundry

Open pandadefi opened this issue 2 years ago • 2 comments

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: https://github.com/yearn/veYFI/pull/196

pandadefi avatar Sep 19 '22 10:09 pandadefi

@NotPeopling2day would be good to follow up on this one

fubuloubu avatar Feb 02 '23 00:02 fubuloubu

Seems like this was resolved for veYFI: https://github.com/yearn/veYFI/blob/229528b44722562780bd25a3b5d46877186f277e/tests/functional/test_ve_yfi_rewards.py#L25

fubuloubu avatar Feb 05 '24 23:02 fubuloubu