Skip to content

Commit

Permalink
fix: clear block_number and verbose on exit
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Feb 12, 2024
1 parent 708de93 commit f3977e7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brownie/network/multicall.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ def __exit__(self, exc_type: Exception, exc_val: Any, exc_tb: TracebackType) ->
self.flush()
getattr(ContractCall, "__multicall")[get_ident()] = None

self._block_number.pop(get_ident(), None)
self._verbose.pop(get_ident(), None)

@staticmethod
def deploy(tx_params: Dict) -> Contract:
"""Deploy an instance of the `Multicall2` contract.
Expand Down

0 comments on commit f3977e7

Please sign in to comment.