UNPKG

skill-collect-direction

Version:
10 lines 372 B
export var createGetBrowserLink = function createGetBrowserLink(url) { return function (address, type) { if (type === 'address') { return "".concat(url, "/address/").concat(address); } else if (type === 'transaction') { return "".concat(url, "/tx/").concat(address); } throw new Error("getBrowserLink unsupported type ".concat(type)); }; };