commit 9655b701ad6a2046ef83a790a7fd0446a576a2a9 parent fa86b6d486ff9dfe9c5072018d45eab6929215dc Author: Sebastian <sebasjm@gmail.com> Date: Thu, 1 Feb 2024 15:12:21 -0300 Big integer literals are not available in es2015 Diffstat:
4 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/packages/taler-wallet-core/src/operations/backup/state.ts b/packages/taler-wallet-core/src/operations/backup/state.ts @@ -13,5 +13,3 @@ You should have received a copy of the GNU General Public License along with GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ - - diff --git a/packages/taler-wallet-core/src/operations/withdraw.ts b/packages/taler-wallet-core/src/operations/withdraw.ts @@ -1219,7 +1219,8 @@ export async function updateWithdrawalDenoms( denom.verificationStatus === DenominationVerificationStatus.Unverified ) { logger.trace( - `Validating denomination (${current + 1}/${denominations.length + `Validating denomination (${current + 1}/${ + denominations.length }) signature of ${denom.denomPubHash}`, ); let valid = false; @@ -1864,7 +1865,7 @@ export async function getExchangeWithdrawalInfo( ) { logger.warn( `wallet's support for exchange protocol version ${WALLET_EXCHANGE_PROTOCOL_VERSION} might be outdated ` + - `(exchange has ${exchange.protocolVersionRange}), checking for updates`, + `(exchange has ${exchange.protocolVersionRange}), checking for updates`, ); } } diff --git a/packages/taler-wallet-core/src/util/instructedAmountConversion.test.ts b/packages/taler-wallet-core/src/util/instructedAmountConversion.test.ts @@ -23,7 +23,11 @@ import { } from "@gnu-taler/taler-util"; import test, { ExecutionContext } from "ava"; import { CoinInfo } from "./coinSelection.js"; -import { convertDepositAmountForAvailableCoins, getMaxDepositAmountForAvailableCoins, convertWithdrawalAmountFromAvailableCoins } from "./instructedAmountConversion.js"; +import { + convertDepositAmountForAvailableCoins, + getMaxDepositAmountForAvailableCoins, + convertWithdrawalAmountFromAvailableCoins, +} from "./instructedAmountConversion.js"; function makeCurrencyHelper(currency: string) { return (sx: TemplateStringsArray, ...vx: any[]) => { diff --git a/packages/taler-wallet-core/src/util/timer.ts b/packages/taler-wallet-core/src/util/timer.ts @@ -94,7 +94,7 @@ export const performanceNow: () => bigint = (() => { return () => BigInt(Math.floor(performance.now() * 1000)) * BigInt(1000); } - return () => BigInt(new Date().getTime()) * 1000n * 1000n; + return () => BigInt(new Date().getTime()) * BigInt(1000) * BigInt(1000); })(); const nullTimerHandle = {