diff --git a/lib/utility.py b/lib/utility.py
index 8b4fe448dc0c690e7af111dff26e09ecbb9dc263..74dd8df67ee9fe762c3535960cf3fde6cf42d92c 100644
--- a/lib/utility.py
+++ b/lib/utility.py
@@ -5,11 +5,11 @@ from substrateinterface import Keypair, KeypairType
 
 def v1_pubkey_to_v2_address(pubkey):
     pubkey_bytes = base58.b58decode(pubkey)
-    pubkey_lenght = len(pubkey_bytes)
+    pubkey_length = len(pubkey_bytes)
         
     # Add 0 head byte to pubkey so as to reach 32 bytes
-    if pubkey_lenght < 32:
-        pubkey_bytes = bytes([0]*(32-pubkey_lenght)) + pubkey_bytes
+    if pubkey_length < 32:
+        pubkey_bytes = bytes([0]*(32-pubkey_length)) + pubkey_bytes
     
     # get incomplete Substrate keypair (only public key) from public key bytes
     keypair = Keypair(public_key=pubkey_bytes, ss58_format=42, crypto_type=KeypairType.ED25519)