Skip to content

Commit

Permalink
fix: bugs fix & update rpc's
Browse files Browse the repository at this point in the history
  • Loading branch information
Argeare5 committed Feb 6, 2024
1 parent 64f5d5f commit aa5e023
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ipfs_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ jobs:
owner: context.repo.owner,
repo: context.repo.repo,
release_id: data.id,
body: data.body + `\n <hr> \n Ipfs deployment: [${{steps.pinata.outputs.hash}}](${{steps.pinata.outputs.uri}})`,
body: data.body + `\n <hr> \n Ipfs deployment:` + `${{steps.pinata.outputs.uri}}`,
})
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ React application to interact with the Aave Governance V3 smart contracts: visua

## Pre-requirements

- [Node.js](https://nodejs.org/ru): version 18.17 or higher.
- [Node.js](https://nodejs.org/ru): version 18 or higher.
- [Git](https://git-scm.com/downloads): version 2.3.x or higher.
- Package manager: we recommend [Yarn](https://yarnpkg.com/), version 1.x or higher.

Expand Down
2 changes: 1 addition & 1 deletion src/proposals/components/proposal/Details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function Details({
</Box>

<Box sx={{ display: 'flex', alignItems: 'center' }}>
<Box component="p">
<Box component="p" sx={{ wordBreak: 'break-word' }}>
{(ensData[proposalCreator.toLocaleLowerCase() as Hex]
?.name as Hex) || proposalCreator}
</Box>
Expand Down
9 changes: 5 additions & 4 deletions src/ui/components/NetworkIcon.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Box, SxProps } from '@mui/system';
import { useState } from 'react';
import { toHex } from 'viem';
import {
arbitrum,
Expand Down Expand Up @@ -73,8 +74,8 @@ export function NetworkIcon({
css,
withTooltip,
}: NetworkIconProps) {
const networkIconName = getIconNetworkName(chainId);
const chain = chainInfoHelper.getChainParameters(chainId);
const [networkIconName] = useState(getIconNetworkName(chainId));
const [chain] = useState(chainInfoHelper.getChainParameters(chainId));

return (
<>
Expand Down Expand Up @@ -103,7 +104,7 @@ export function NetworkIcon({
src={setRelativePath(
`/images/networks/${networkIconName.toLowerCase()}.svg`,
)}
alt={`${chainInfoHelper.getChainParameters(chainId).name} icon`}
alt={`${chain.name} icon`}
/>
</Tooltip>
) : (
Expand All @@ -118,7 +119,7 @@ export function NetworkIcon({
src={setRelativePath(
`/images/networks/${networkIconName.toLowerCase()}.svg`,
)}
alt={`${chainInfoHelper.getChainParameters(chainId).name} icon`}
alt={`${chain.name} icon`}
/>
)}
</>
Expand Down
6 changes: 6 additions & 0 deletions src/utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,21 @@ export const initialRpcUrls: Record<number, string[]> = {
'https://metis.api.onfinality.io/public',
],
[optimism.id]: [
process.env.NEXT_PUBLIC_RPC_OPTIMISM ||
'https://endpoints.omniatech.io/v1/arbitrum/one/public',
'https://optimism.blockpi.network/v1/rpc/public',
'https://optimism.llamarpc.com',
'https://optimism.publicnode.com',
],
[gnosis.id]: [
process.env.NEXT_PUBLIC_RPC_GNOSIS ||
'https://endpoints.omniatech.io/v1/arbitrum/one/public',
'https://gnosis.blockpi.network/v1/rpc/public',
'https://gnosis-mainnet.public.blastapi.io',
],
[scroll.id]: [
process.env.NEXT_PUBLIC_RPC_SCROLL ||
'https://endpoints.omniatech.io/v1/arbitrum/one/public',
'https://scroll.blockpi.network/v1/rpc/public',
'https://scroll-mainnet.public.blastapi.io',
],
Expand Down
2 changes: 1 addition & 1 deletion src/utils/localStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { EnsDataItem } from '../web3/store/ensSlice';

export enum LocalStorageKeys {
EnsAddresses = 'EnsAddresses',
RpcUrls = 'URLsRPCs',
RpcUrls = 'UrlsRpcS',
RepresentingAddresses = 'representingAddresses',
GaslessVote = 'isGaslessVote',
TermsAccept = 'termsAccept',
Expand Down

1 comment on commit aa5e023

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.