ethers.js/packages/hardware-wallets/src.ts/browser-ethers.ts

13 lines
234 B
TypeScript
Raw Permalink Normal View History

"use strict";
let ethers: any = { };
const w = (window as any);
if (w._ethers == null) {
console.log("WARNING: @ethersproject/hardware-wallet requires ethers loaded first");
} else {
ethers = w._ethers;
}
export { ethers }