UNPKG

wehelpjs

Version:

wehelpjs is the JavaScript API Library for the WeYouMe blockchain

21 lines (15 loc) 881 B
"use strict"; var operation = _interopRequireWildcard(require("./operations.js")); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = Object.defineProperty && Object.getOwnPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : {}; if (desc.get || desc.set) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; return newObj; } } let isTransactionFormatValid = function (transaction) { if (Array.isArray(transaction)) { for (let i = 0; i < transaction.length; i += 1) { if (!Array.isArray(transaction[i]) || transaction[i].length < 2) { return false; } } return true; } return false; }; module.exports = void 0;