コード例 #1
0
ファイル: main.py プロジェクト: burakbalta/web3.py
 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
             )
         )
コード例 #2
0
 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}"
         )
コード例 #3
0
 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))