UNPKG

vasku

Version:

TVM-Solidity contract development framework

19 lines (18 loc) 664 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateGiverSendOptions = exports.GIVER_SEND_FLAGS = void 0; exports.GIVER_SEND_FLAGS = { to: '-t, --to <to>', value: '-v, --value <value>' }; function validateGiverSendOptions(options) { if (options.to === undefined) return { error: error(exports.GIVER_SEND_FLAGS.to) }; else if (options.value === undefined) return { error: error(exports.GIVER_SEND_FLAGS.to) }; return { value: options }; } exports.validateGiverSendOptions = validateGiverSendOptions; function error(flag) { return new Error(`Required option ${flag} not specified`); }