In general, inputs that are commands have to be reviewed by the user before the tx is signed.
The blockchain has several kinds of "input commands":
- account commands (
AccountCommand or OrderAccountCommand); only one of these is allowed per tx;
- account spendings (
AccountSpending), which currently only allow spending from a delegation; any number of these is allowed per tx and they can co-exist with an account command.
Currently, the app assumes that only one "input command" is possible per tx. Worse, it silently overwrites the last stored "input command" when a new one arrives. So
There are a couple of TODOs related to this, the main one is near TxSummaryCollector::input_command.
In general, inputs that are commands have to be reviewed by the user before the tx is signed.
The blockchain has several kinds of "input commands":
AccountCommandorOrderAccountCommand); only one of these is allowed per tx;AccountSpending), which currently only allow spending from a delegation; any number of these is allowed per tx and they can co-exist with an account command.Currently, the app assumes that only one "input command" is possible per tx. Worse, it silently overwrites the last stored "input command" when a new one arrives. So
Addressed by Fixing issues #23
There are a couple of TODOs related to this, the main one is near
TxSummaryCollector::input_command.