Skip to content

Commit

Permalink
fix: enabled transfers for minimum zts amount (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
sol-znn committed Sep 17, 2023
1 parent d4e865a commit 8fec856
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,12 +384,14 @@ class _SendLargeCardState extends State<SendLargeCard> {
bool _isInputValid(AccountInfo accountInfo) =>
InputValidators.checkAddress(_recipientController.text) == null &&
InputValidators.correctValue(
_amountController.text,
accountInfo.getBalance(
_selectedToken.tokenStandard,
),
_selectedToken.decimals,
BigInt.one) ==
_amountController.text,
accountInfo.getBalance(
_selectedToken.tokenStandard,
),
_selectedToken.decimals,
BigInt.one,
canBeEqualToMin: true,
) ==
null;

@override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,14 @@ class _SendMediumCardState extends State<SendMediumCard> {
bool _isInputValid(AccountInfo accountInfo) =>
InputValidators.checkAddress(_recipientController.text) == null &&
InputValidators.correctValue(
_amountController.text,
accountInfo.getBalance(
_selectedToken.tokenStandard,
),
_selectedToken.decimals,
BigInt.one) ==
_amountController.text,
accountInfo.getBalance(
_selectedToken.tokenStandard,
),
_selectedToken.decimals,
BigInt.one,
canBeEqualToMin: true,
) ==
null;

@override
Expand Down

0 comments on commit 8fec856

Please sign in to comment.