diff --git a/dashtx.js b/dashtx.js index 9cd7da5..921c487 100644 --- a/dashtx.js +++ b/dashtx.js @@ -250,7 +250,7 @@ var DashTx = ("object" === typeof module && exports) || {}; }; Tx.create = function (keyUtils) { - if (!keyUtils.getPrivateKey) { + if (!keyUtils?.getPrivateKey) { throw new Error(`you must create with 'opts.getPrivateKey()'`); }