Skip to content

Commit 9a46603

Browse files
committed
fix: keep opts optional
1 parent 70e330a commit 9a46603

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dashkeys.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -973,8 +973,6 @@ var DashKeys = ("object" === typeof module && exports) || {};
973973

974974
/** @type {DecodeBase58Check} */
975975
_DashKeys.decode = async function (keyB58c, opts) {
976-
console.log("################ found it!");
977-
978976
let _opts = {};
979977
if (opts?.version) {
980978
switch (opts.version) {
@@ -1035,7 +1033,7 @@ var DashKeys = ("object" === typeof module && exports) || {};
10351033
throw new Error(`unknown version ${opts.version}`);
10361034
}
10371035
}
1038-
if (opts.versions) {
1036+
if (opts?.versions) {
10391037
Object.assign(_opts, opts);
10401038
}
10411039
let parts = await dash58check.decode(keyB58c, _opts);

0 commit comments

Comments
 (0)