mirror of https://github.com/nucypher/nucypher.git
update local signer integration to support newer version of eth_account.
parent
671b81fc4f
commit
4ae72f94ab
|
@ -161,7 +161,12 @@ class KeystoreSigner(Signer):
|
|||
raise self.InvalidKeyfile(error)
|
||||
else:
|
||||
if not is_address(address):
|
||||
raise self.InvalidKeyfile(f"'{path}' does not contain a valid ethereum address")
|
||||
try:
|
||||
address = to_checksum_address(address)
|
||||
except ValueError:
|
||||
raise self.InvalidKeyfile(
|
||||
f"'{path}' does not contain a valid ethereum address"
|
||||
)
|
||||
address = to_checksum_address(address)
|
||||
return address, key_metadata
|
||||
|
||||
|
|
Loading…
Reference in New Issue