diff --git a/core/meterer/offchain_store.go b/core/meterer/offchain_store.go index 0a5f425d58..29686ebd2e 100644 --- a/core/meterer/offchain_store.go +++ b/core/meterer/offchain_store.go @@ -292,7 +292,7 @@ func (s *OffchainStore) GetLargestCumulativePayment(ctx context.Context, account return nil, fmt.Errorf("failed to parse payment: %w", err) } - return big.NewInt(int64(payment)), nil + return new(big.Int).SetUint64(payment), nil } func parseBinUsage(bin map[string]types.AttributeValue) (uint64, error) {