Skip to content

Commit

Permalink
chore: default_verbosity -> default_verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdefinitelyahuman committed Feb 12, 2024
1 parent 756e2cd commit 0dc1d76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions brownie/network/multicall.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Multicall:

def __init__(self) -> None:
self.address = None
self.default_verbosity = False
self.default_verbose = False
self._block_number = defaultdict(lambda: None) # type: ignore
self._verbose = defaultdict(lambda: None) # type: ignore
self._contract = None
Expand All @@ -72,7 +72,7 @@ def __call__(
) -> "Multicall":
self.address = address # type: ignore
self._block_number[get_ident()] = block_identifier # type: ignore
self._verbose[get_ident()] = verbose if verbose is not None else self.default_verbosity
self._verbose[get_ident()] = verbose if verbose is not None else self.default_verbose
return self

def _flush(self, future_result: Result = None) -> Any:
Expand All @@ -84,7 +84,7 @@ def _flush(self, future_result: Result = None) -> Any:
# or this result has already been retrieved
return future_result
with self._lock:
if self._verbose.get(get_ident(), self.default_verbosity):
if self._verbose.get(get_ident(), self.default_verbose):
message = (
"Multicall:"
f"\n Thread ID: {get_ident()}"
Expand Down
4 changes: 2 additions & 2 deletions docs/api-network.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1900,13 +1900,13 @@ Multicall Attributes
... brownie.multicall.block_number
12733683
.. py:attribute:: Multicall.default_verbosity
.. py:attribute:: Multicall.default_verbose
Default verbosity setting for multicall. Set to ``False`` by default. If set to ``True``, the content of each batched call is printed to the console. This is useful for debugging, to ensure a multicall is performing as expected.

.. code-block:: python
>>> multicall.default_verbosity = True
>>> multicall.default_verbose = True
You can also enable verbosity for individual multicalls by setting the `verbose` keyword:

Expand Down

0 comments on commit 0dc1d76

Please sign in to comment.