emmet.sdk
Version:
Emmet.Bridge SDK library
21 lines • 625 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getEvmAccounts = void 0;
const wallets_1 = require("../../wallets");
async function getEvmAccounts(ethereum) {
try {
if (ethereum) {
const accounts = await ethereum.request({
method: wallets_1.MESSAGE_TYPE.ETH_REQUEST_ACCOUNTS,
});
if (accounts)
return accounts;
}
}
catch (error) {
throw new Error("Failed to get EVM accounts");
}
return [];
}
exports.getEvmAccounts = getEvmAccounts;
//# sourceMappingURL=getEvmAccounts.js.map