Skip to content

Commit

Permalink
Fixed typo Error on Polkadot validator (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
imoark authored Jan 24, 2022
1 parent f85d1fd commit 40e1ce9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dot_validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 40e1ce9

Please sign in to comment.