UNPKG

@bithomp/xrpl-api

Version:

A Bithomp JavaScript/TypeScript library for interacting with the XRP Ledger

13 lines (12 loc) 368 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseDestination = parseDestination; const common_1 = require("../../common"); function parseDestination(tx) { if (tx && tx.Destination) { return (0, common_1.removeUndefined)({ address: tx.Destination, tag: tx.DestinationTag, }); } }