mirror of
https://github.com/jimeh/node-base58.git
synced 2026-02-19 07:36:40 +00:00
Fix typo in error thrown by Base58.decode()
This commit is contained in:
@@ -16,7 +16,7 @@ class Base58Builder
|
||||
num = 0
|
||||
for char, index in str.split(//).reverse()
|
||||
if (char_index = @alphabet.indexOf(char)) == -1
|
||||
throw new Error('Value passed not a valid Base58 string.')
|
||||
throw new Error('Value passed is not a valid Base58 string.')
|
||||
num += char_index * Math.pow(@base, index)
|
||||
num
|
||||
|
||||
|
||||
Reference in New Issue
Block a user