ApeWorX / ape-foundry

Foundry network provider for the Ape Framework
https://www.apeworx.io/
Apache License 2.0
33 stars 13 forks source link

chain sleep is broken with foundry #16

Open pandadefi opened 1 year ago

pandadefi commented 1 year ago

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)

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

fubuloubu commented 1 year ago

@NotPeopling2day would be good to follow up on this one

fubuloubu commented 7 months ago

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