-//
-//
-//
-//
-//
-//
-//
Vite + TypeScript
-//
-//
-//
-//
-// Click on the Vite and TypeScript logos to learn more
-//
-//
-// `
-console.log('boom');
-document
- .querySelector('#connect-accounts')
- .addEventListener('click', function () { return __awaiter(void 0, void 0, void 0, function () {
- var allInjected, allAccounts;
- return __generator(this, function (_a) {
- switch (_a.label) {
- case 0:
- console.log('click');
- return [4 /*yield*/, (0, extension_dapp_1.web3Enable)('example-dapp')];
- case 1:
- allInjected = _a.sent();
- document.querySelector('#injected').innerHTML = JSON.stringify(allInjected);
- return [4 /*yield*/, (0, extension_dapp_1.web3Accounts)()];
- case 2:
- allAccounts = _a.sent();
- document.querySelector('#all-accounts').innerHTML = JSON.stringify(allAccounts);
- return [2 /*return*/];
- }
- });
-}); });
-// setupCounter(document.querySelector