Skip to content

Commit

Permalink
don't access private member
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertoCentonze committed Jan 27, 2025
1 parent 9b946d6 commit 14c8533
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions boa/contracts/abi/abi_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,10 @@ def __init__(self, name: str, abi: list[dict], filename: Optional[str] = None):
def abi(self):
return self._abi

@cached_property
def name(self):
return self._name

@property
def functions(self):
return [
Expand Down
2 changes: 1 addition & 1 deletion boa/contracts/vvm/vvm_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __str__(self):

class VVMBlueprint(ABIContract):
def __init__(self, deployer: "VVMDeployer", address: Address):
name = deployer._name or "<unknown>" # help mypy
name = deployer.name or "<unknown>" # help mypy
super().__init__(
name,
abi=[],
Expand Down

0 comments on commit 14c8533

Please # to comment.