Skip to content

Commit

Permalink
fix: test_abi formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickAlphaC committed Sep 12, 2024
1 parent 8a008df commit 6d71f64
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions boa/contracts/abi/abi_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,18 @@ def functions(self):
def from_abi_dict(cls, abi, name="<anonymous contract>", filename=None):
return cls(name, abi, filename)

def at(self, address: Address | str, suppress_warning: bool= False) -> ABIContract:
def at(self, address: Address | str, suppress_warning: bool = False) -> ABIContract:
"""
Create an ABI contract object for a deployed contract at `address`.
"""
address = Address(address)
contract = ABIContract(
self._name, self._abi, self.functions, address, self.filename, suppress_warning=suppress_warning
self._name,
self._abi,
self.functions,
address,
self.filename,
suppress_warning=suppress_warning
)

contract.env.register_contract(address, contract)
Expand Down

0 comments on commit 6d71f64

Please sign in to comment.