Skip to content

Commit

Permalink
Merge pull request #51 from hypercore-one/bugfix/transfer_min_amount
Browse files Browse the repository at this point in the history
fix: enabled transfers for minimum zts amount
  • Loading branch information
sol-znn committed Sep 13, 2023
2 parents a9fdb55 + b4d5140 commit bff6aef
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 @@ -322,12 +322,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 bff6aef

Please sign in to comment.