Skip to content

Hotfix 12332

alexey.stratulat requested to merge hotfix-12332 into master

The following changes have been made:

Handler and help of token_update command

  1. Removed from the command parameters are:
  • signs_total
  • signs_emission
  • type
  • total_supply
  • decimals
  1. Parameters have been removed from the help:
  • datum_type_allowed
  • datum_type_blocked
  1. The new_cert parameter has been renamed to add_cert because it adds a new certificate rather than replacing the current one.
  2. Added information about pkey_remove parameter to the help.
  3. Added total_supply_chanage parameter to both the help and handler which creates TSD section with new total_supply.

Units test

  1. Added a test to check if the datum is updated with a smaller and larger value, from the set value.
  2. Added test that updates total_supply with 0 value and then updates total_supply with non-zero value. The first update should be accepted, but the second should not

Processing token update

  1. Fixed Ledger check, while processing token update with total_supply change, if the current total_supply is set to 0 the update will not be accepted. If the new total_supply is set greater than the current total_supply or 0 (infinity), the update will be accepted.

Merge request reports

Loading