mirror of
https://github.com/andrei0x309/clear-wallet.git
synced 2024-11-18 23:41:10 +00:00
gate: Add an initial value to this "reduce()" call.
This commit is contained in:
parent
1bdc7d7b37
commit
15dd895c2f
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user