You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(Pdb) env
<boa.environment.Env object at 0x111088170>
(Pdb) env.time_travel(seconds=123, blocks=0)
*** ValueError: One of seconds or blocks should be set
Looking at the code:
if (seconds is None) == (blocks is None):
Both seconds is not None and blocks is not None and those are equal so i get the weird error message.
Workaround:
env.time_travel(seconds=123, blocks=None)
^ but kinda weird when params are dynamically figured out
The text was updated successfully, but these errors were encountered:
i think this is expected behavior -- time_travel only allows one of block_number or timestamp to be set. if you want to set them in a "low-level" way, just modify patch.block_number and patch.timestamp directly
Looking at the code:
Both seconds is not None and blocks is not None and those are equal so i get the weird error message.
Workaround:
^ but kinda weird when params are dynamically figured out
The text was updated successfully, but these errors were encountered: