ethers.js/packages/hardware-wallets/test.js

15 lines
309 B
JavaScript
Raw Permalink Normal View History

2020-01-10 20:09:40 -05:00
"use strict";
const { LedgerSigner } = require("./lib");
(async function() {
const signer = new LedgerSigner();
console.log(signer);
try {
const sig = await signer.signMessage("Hello World");
console.log(sig);
} catch (error) {
console.log("ERR", error);
}
})();