diff options
| -rw-r--r-- | routes/users.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routes/users.js b/routes/users.js index 0c258155..d9a04304 100644 --- a/routes/users.js +++ b/routes/users.js @@ -437,9 +437,10 @@ app.get( await lq.getNewAddress() ); const parts = hdkeypath.split("/"); - i = parts[parts.length - 1].slice(0, -1); + i = parseInt(parts[parts.length - 1].slice(0, -1)); } + l.info("liquid address index", i); if (!i) throw new Error("Problem generating address"); hd = fromBase58(config.liquid.masterkey, n).derivePath(`m/0'/0'/${i}'`); |
