if (Array.isArray(contract)) {
      const data = {
        type: "noBatches",
        contract
      };