From 111e12a44075a84e8f66b35363a35c90252049e8 Mon Sep 17 00:00:00 2001 From: Chenna Keshava B S <21219765+ckeshava@users.noreply.github.com> Date: Thu, 7 Nov 2024 13:51:24 -0800 Subject: [PATCH] Update xrpl/models/transactions/credential_create.py Co-authored-by: Mayukha Vadari --- xrpl/models/transactions/credential_create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrpl/models/transactions/credential_create.py b/xrpl/models/transactions/credential_create.py index 9937b3a80..037d276c1 100644 --- a/xrpl/models/transactions/credential_create.py +++ b/xrpl/models/transactions/credential_create.py @@ -69,7 +69,7 @@ def _get_uri_error(self: Self) -> Optional[str]: errors = [] if len(self.uri) == 0: errors.append("Length must be > 0.") - if len(self.uri) > _MAX_URI_LENGTH: + elif len(self.uri) > _MAX_URI_LENGTH: errors.append(f"Length must be < {_MAX_URI_LENGTH}.") if not HEX_REGEX.fullmatch(self.uri): errors.append("Must be encoded in hex.")