UNPKG

@signumjs/wallets

Version:

Wallets communication package for DApps in the Signum Network

9 lines 337 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.assertAddress = assertAddress; function assertAddress(address) { if (!/^.+?-([a-zA-Z0-9]{4}-){3}[a-zA-Z0-9]{5}|^\d{18,24}$/gi.test(address)) { throw new Error(`Invalid address: ${address}`); } } //# sourceMappingURL=assertAddress.js.map