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

15 lines
309 B
JavaScript
Raw Normal View History

2020-01-11 04:09:40 +03: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);
}
})();