UNPKG

@nextrope/xrpl

Version:

A TypeScript/JavaScript API for interacting with the XRP Ledger in Node.js and the browser

16 lines 695 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateNFTokenCancelOffer = void 0; const errors_1 = require("../../errors"); const common_1 = require("./common"); function validateNFTokenCancelOffer(tx) { (0, common_1.validateBaseTransaction)(tx); if (!(0, common_1.isArray)(tx.NFTokenOffers)) { throw new errors_1.ValidationError('NFTokenCancelOffer: missing field NFTokenOffers'); } if (tx.NFTokenOffers.length < 1) { throw new errors_1.ValidationError('NFTokenCancelOffer: empty field NFTokenOffers'); } } exports.validateNFTokenCancelOffer = validateNFTokenCancelOffer; //# sourceMappingURL=NFTokenCancelOffer.js.map