UNPKG

flowbatcher

Version:

Save gas by batching multiple ETH and ERC-20 transactions into a single operation, optimizing efficiency and reducing costs.

13 lines (11 loc) 239 B
/** @param {string} message * @param {object} jsonData */ function throwError(message, jsonData = {}) { const err = new Error(message) err.data = JSON.stringify(jsonData) throw err } module.exports = { throwError: throwError, }