minima-global / Minima

The Minima protocol Java libraries and application
Apache License 2.0
129 stars 146 forks source link

TokenCreate fail check for amount zero #565

Closed eliasnemr closed 1 year ago

eliasnemr commented 2 years ago

Minima Version: 0.101.0

Current Behavior

When creating a token by running,

tokencreate name:bla amount:0

it will return status: true and you get a txpow as response. The transaction still fails soon after and you receive a log saying,

Minima @ 13/04/2022 16:09:18 [245.1 MB] : Transaction error : Output is invalid Minima Amount 0.

Expected Behavior

We should receive status: false or some sort of fail check so that the front end can respond accordingly.