Fix bug with checking for dust in transfers

This commit is contained in:
Paul Hauner
2019-05-23 16:52:20 +10:00
parent 13f78342c3
commit 29792c56d5
2 changed files with 19 additions and 7 deletions

View File

@@ -398,7 +398,12 @@ pub enum TransferInvalid {
/// min_deposit_amount`
///
/// (resulting_amount, min_deposit_amount)
InvalidResultingFromBalance(u64, u64),
SenderDust(u64, u64),
/// This transfer would result in the `transfer.to` account to have `0 < balance <
/// min_deposit_amount`
///
/// (resulting_amount, min_deposit_amount)
RecipientDust(u64, u64),
/// The state slot does not match `transfer.slot`.
///
/// (state_slot, transfer_slot)