def _assert_control(self, account, name, parent_owned=None): if not address_in(account, self.web3.eth.accounts): raise UnauthorizedError( "in order to modify %r, you must control account %r, which owns %r" % ( name, account, parent_owned or name ) )
def _assert_control(self, account, name, parent_owned=None): if not address_in(account, self.web3.eth.accounts): raise UnauthorizedError( "in order to modify %r, you must control account %r, which owns %r" % ( name, account, parent_owned or name ) )
def _assert_control(self, account: ChecksumAddress, name: str, parent_owned: Optional[str] = None) -> None: if not address_in(account, self.w3.eth.accounts): raise UnauthorizedError( f"in order to modify {name!r}, you must control account" f" {account!r}, which owns {parent_owned or name!r}" )
def _assert_control(self, account: ChecksumAddress, name: str, parent_owned: Optional[str] = None) -> None: if not address_in(account, self.web3.eth.accounts): raise UnauthorizedError( "in order to modify %r, you must control account %r, which owns %r" % (name, account, parent_owned or name))