Merge pull request #1423 from coinfund/bugfix/parity_unlock

Unable to unlock account parity client due to typo
pull/1427/head
David Núñez 2019-10-17 23:54:38 +02:00 committed by GitHub
commit 0a6e95c54c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -358,7 +358,7 @@ class ParityClient(Web3Client):
return to_checksum_address(new_account) # cast and validate
def unlock_account(self, address, password, duration: int = None) -> bool:
return self.w3.parity.unlockAccount.unlockAccount(address, password, duration)
return self.w3.parity.personal.unlockAccount(address, password, duration)
def lock_account(self, address):
return self.w3.parity.personal.lockAccount(address)