How to use the @ledgerhq/hw-transport-webusb.default function in @ledgerhq/hw-transport-webusb

To help you get started, we’ve selected a few @ledgerhq/hw-transport-webusb examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github irisnet / irisnet-crypto / src / ledger / index.js View on Github external
Ledger.create = async function(transport, scrambleKey = 'CSM'){
    if(transport === ""){
        transport = require("@ledgerhq/hw-transport-webusb").default
    }
    return new LedgerApp(transport,scrambleKey)
};
module.exports = Ledger;