taler-go

Utility functions in Go language
Log | Files | Refs | LICENSE

commit 903c2fdca4c572deb74598350cede90e58ce891b
parent d506a364d995e17b2ac14e4ed3a3c9fbc928225d
Author: Martin Schanzenbach <schanzen@gnunet.org>
Date:   Sun, 17 Jul 2022 12:53:56 +0200

fix pow

Diffstat:
Mpkg/util/amount.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pkg/util/amount.go b/pkg/util/amount.go @@ -26,7 +26,7 @@ const FractionalLength = 8 const FractionalBase = 1e8 -const MaxAmountValue = 2^52 +var MaxAmountValue = uint64(math.Pow(2, 52)) func NewAmount(currency string, value uint64, fraction uint64) Amount { return Amount{