Skip to content

Commit

Permalink
Merge pull request #393 from aura-nw/dev
Browse files Browse the repository at this point in the history
fix chainId
  • Loading branch information
hoangndm3139 authored Jun 3, 2024
2 parents df57763 + 47c1b5f commit f6dd675
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/config/cache/chains.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { ChainInfo, RPC_AUTHENTICATION } from '@gnosis.pm/safe-react-gateway-sdk'
import { getMChainsConfig } from '../../services'
import { MChainInfo, getMChainsConfig } from '../../services'

// Cache is required as loading Redux store directly is an anit-pattern
let chains: ChainInfo[] = []

export const getChains = (): ChainInfo[] => chains

export const loadChains = async () => {
const networkList: ChainInfo[] = await getMChainsConfig()
const networkList: MChainInfo[] = await getMChainsConfig()
chains = networkList.map((chain) => {
return {
...chain,
Expand Down Expand Up @@ -47,5 +47,4 @@ export const emptyChainInfo: ChainInfo = {
gasPrice: [],
disabledWallets: [],
features: [],
indexerDb: ''
}
1 change: 1 addition & 0 deletions src/services/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ type _ChainInfo = {
explorer: string
defaultGasPrice: string
defaultGas: GasPriceDefault[]
indexerDb: string
}

type GasPriceDefault = {
Expand Down

0 comments on commit f6dd675

Please sign in to comment.