Shorten amount-bound error message

This commit is contained in:
Carl Beekhuizen 2020-09-17 15:03:34 +02:00
parent 8bfdd38aba
commit 77891acbe2
No known key found for this signature in database
GPG Key ID: 8F29E54F49E7AAB5

View File

@ -62,7 +62,7 @@ class Credential:
@property
def deposit_message(self) -> DepositMessage:
if not MIN_DEPOSIT_AMOUNT <= self.amount <= MAX_DEPOSIT_AMOUNT:
raise ValidationError(f"{self.amount / ETH2GWEI} ETH deposits are not within the expected bounds of this cli.")
raise ValidationError(f"{self.amount / ETH2GWEI} ETH deposits are not within the bounds of this cli.")
return DepositMessage(
pubkey=self.signing_pk,
withdrawal_credentials=self.withdrawal_credentials,