diff --git a/index.js b/index.js index ab303dc..e71281f 100644 --- a/index.js +++ b/index.js @@ -518,7 +518,7 @@ class TICrypto { * @return {String} address * @memberof TICrypto */ - static secword2address(secword, { coin, pass, path, tool, hasher }) { + static secword2address(secword, { coin, pass, path, tool, hasher } = {}) { coin = my.COIN_LIST.indexOf(coin?.toUpperCase()) >= 0 ? coin.toUpperCase() : my.COIN let kp = this.secword2keypair(secword, { coin, pass, path, tool, hasher }) if (kp) {