Skip to content

Commit

Permalink
Merge pull request #1689 from calina-c/patch-1
Browse files Browse the repository at this point in the history
Ensure contract address exists in contract map before deleting
  • Loading branch information
iamdefinitelyahuman authored Jan 29, 2024
2 parents a38f7fb + 5c02442 commit e894aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brownie/network/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def _add_contract(contract: Any) -> None:


def _remove_contract(contract: Any) -> None:
del _contract_map[contract.address]
_contract_map.pop(contract.address, None)


def _get_deployment(
Expand Down

0 comments on commit e894aa9

Please sign in to comment.