You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

NFTokenCancelOffer.js 687B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.validateNFTokenCancelOffer = void 0;
  4. const errors_1 = require("../../errors");
  5. const common_1 = require("./common");
  6. function validateNFTokenCancelOffer(tx) {
  7. (0, common_1.validateBaseTransaction)(tx);
  8. if (!Array.isArray(tx.NFTokenOffers)) {
  9. throw new errors_1.ValidationError('NFTokenCancelOffer: missing field NFTokenOffers');
  10. }
  11. if (tx.NFTokenOffers.length < 1) {
  12. throw new errors_1.ValidationError('NFTokenCancelOffer: empty field NFTokenOffers');
  13. }
  14. }
  15. exports.validateNFTokenCancelOffer = validateNFTokenCancelOffer;
  16. //# sourceMappingURL=NFTokenCancelOffer.js.map