Skip to content

Commit

Permalink
Fix error message displayed if sender doesn't have enough algo to send.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbennett committed Apr 4, 2024
1 parent 2781c76 commit 0898e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func main() {
func checkBalanceReqs(senderInfo algo.AccountWithMinBalance, expectedFees uint64) {
misc.Infof(logger, "Sending may cost a maximum of %s ALGO in fees", algo.FormattedAlgoAmount(expectedFees))
if (senderInfo.Amount - senderInfo.MinBalance) < expectedFees {
log.Fatalf("You only have %s (minus MBR) ALGO and likely won't be able to perform this airdrop")
log.Fatalf("You only have %s (minus MBR) ALGO and likely won't be able to perform this airdrop", algo.FormattedAlgoAmount(senderInfo.Amount-senderInfo.MinBalance))
}
}

Expand Down

0 comments on commit 0898e13

Please sign in to comment.