def valid_proposal_step_price(args) -> bool:

    if args.value_value is None:
        raise InvalidArgumentException("Type 4 have to has 'value' value.")

    try:
        int(args.value_value)
    except Exception:
        raise InvalidDataTypeException("value's type should be integer")

    return True
Esempio n. 2
0
 def _tx_by_hash(self, tx_hash):
     try:
         return self._icon_service.get_transaction(tx_hash, True)
     except DataTypeException:
         raise InvalidDataTypeException("This hash value is unrecognized.")