Closed fubuloubu closed 6 years ago
I tried integrating a function that would return the current timestamp for comparisons to stored time in contract testing. It should return basically what the latest unmined block time is (does this match the system clock?). I am currently trying to do it this way here: https://github.com/fubuloubu/pytest-ethereum/blob/da7f9f19c10b6bb6bd50a3fc75836672efeccf3f/pytest_ethereum/tester.py#L54-L56
Unsure if this is the correct approach.
Updated latest to pending, functionality seems to work correctly!
latest
pending
I tried integrating a function that would return the current timestamp for comparisons to stored time in contract testing. It should return basically what the latest unmined block time is (does this match the system clock?). I am currently trying to do it this way here: https://github.com/fubuloubu/pytest-ethereum/blob/da7f9f19c10b6bb6bd50a3fc75836672efeccf3f/pytest_ethereum/tester.py#L54-L56
Unsure if this is the correct approach.