From 40e1ce93a0cdf2ef6372d650c8fd77c73357bd1e Mon Sep 17 00:00:00 2001 From: imoark Date: Mon, 24 Jan 2022 09:00:51 -0800 Subject: [PATCH] Fixed typo Error on Polkadot validator (#40) --- src/dot_validator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dot_validator.js b/src/dot_validator.js index 9e990456..6265fd83 100644 --- a/src/dot_validator.js +++ b/src/dot_validator.js @@ -40,7 +40,7 @@ module.exports = { const addressFormat = addressFormats.find(af => af.addressLength === addressAndChecksum.length); if (!addressFormat) { - throw new Erorr('Invalid address length'); + throw new Error('Invalid address length'); } const decodedAddress = cryptoUtils.byteArray2hexStr(addressAndChecksum.slice(0, addressFormat.accountIndexLength));