Skip to content

Commit

Permalink
version adjustments, little bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WizardOfCodez committed Jan 6, 2023
1 parent 52e02ed commit 90bc72f
Show file tree
Hide file tree
Showing 12 changed files with 274 additions and 440 deletions.
2 changes: 1 addition & 1 deletion backend/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func ValidateBalanceForTransaction(Amount float64, Fee float64, UtilTransaction
balance := WalletBalance()
balanceFloat, _ := strconv.ParseFloat(balance, 64)

if Amount+Fee >= balanceFloat {
if Amount+Fee > balanceFloat {
return false, errors.New("not enough nkn available required: " + fmt.Sprintf("%f", Amount+Fee) + " available: " + balance)
}

Expand Down
Loading

0 comments on commit 90bc72f

Please sign in to comment.