gate: Add an initial value to this "reduce()" call.

This commit is contained in:
Andrei O 2024-09-12 17:10:38 +03:00
parent 1bdc7d7b37
commit 15dd895c2f
No known key found for this signature in database
GPG Key ID: B961E5B68389457E

View File

@ -4,7 +4,7 @@ import { mainNets } from '@/utils/networks';
let provider: ethers.JsonRpcProvider | null = null let provider: ethers.JsonRpcProvider | null = null
const bigIntMax = (...args: bigint[]) => args.reduce((m, e) => e > m ? e : m); const bigIntMax = (...args: bigint[]) => args.reduce((m, e) => e > m ? e : m, BigInt(0))
export const getCurrentProvider = async () => { export const getCurrentProvider = async () => {
const network = await getSelectedNetwork() const network = await getSelectedNetwork()