isHex(value): value is string (#1031)

* isHex stringisHex(value): value is string

* lint
This commit is contained in:
Jaco
2021-06-23 15:47:42 +02:00
committed by GitHub
parent dc06b87cdd
commit 902ff47337
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -29,6 +29,6 @@ export function decodeAddress (encoded?: string | Uint8Array | null, ignoreCheck
return decoded.slice(ss58Length, endPos);
} catch (error) {
throw new Error(`Decoding ${encoded}: ${(error as Error).message}`);
throw new Error(`Decoding ${encoded as string}: ${(error as Error).message}`);
}
}