multichain-address-validator
Version:
Multichain address validator for Bitcoin and other blockchains.
15 lines (14 loc) • 367 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAddress = getAddress;
exports.getMemo = getMemo;
function getAddress(address) {
return typeof address === 'string'
? address
: address.address;
}
function getMemo(address) {
return typeof address === 'string'
? undefined
: address.memo;
}