Skip to content

Commit

Permalink
fix: adjust time offset after transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Apr 7, 2021
1 parent 1c9a5cd commit 0903fba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions brownie/network/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,8 @@ def _add_to_undo_buffer(self, tx: Any, fn: Any, args: Tuple, kwargs: Dict) -> No
else:
self._redo_buffer.clear()
self._current_id = rpc.Rpc().snapshot()
# ensure the local time offset is correct, in case it was modified by the transaction
self.sleep(0)

def _network_connected(self) -> None:
self._reset_id = None
Expand Down

0 comments on commit 0903fba

Please sign in to comment.