This repository was archived by the owner on May 19, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,8 @@ import {
1717import '@rsksmart/rif-ui/dist/index.css' ;
1818import Routes from './Routes' ;
1919
20- const requiredNetworkId = 31
21- const requiredNetworkName = 'RSK Testnet '
20+ const requiredNetworkId = 8545
21+ const requiredNetworkName = 'Localhost 8545 '
2222
2323const App = ( ) => {
2424
Original file line number Diff line number Diff line change 6666 "react" : " 17.0.1" ,
6767 "react-dom" : " 17.0.1" ,
6868 "react-router-dom" : " ^5.2.0" ,
69+ "web3-utils" : " ^1.3.0" ,
6970 "web3" : " ^1.2.8"
7071 },
7172 "engines" : {
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import Web3 from 'web3'
33import { makeStyles , Theme } from '@material-ui/core/styles'
44import Popover from '@material-ui/core/Popover'
55import Typography from '@material-ui/core/Typography'
6+ import { toChecksumAddress } from 'web3-utils'
67import ProviderInfo , { EProvider } from '../../models/ProviderInfo'
78import { shortenString } from '../../utils'
89import { Button , NetworkIndicator } from '../atoms'
@@ -93,9 +94,8 @@ const Account: FC<AccountProps> = (props) => {
9394
9495 if ( connectionStatus === ConnectionStatus . WrongNetwork ) return 'Wrong Network'
9596
96- if ( account ) {
97- // means connectionStatus === ConnectionStatus.LoggedIn
98- return shortenString ( account )
97+ if ( account ) { // means connectionStatus === ConnectionStatus.LoggedIn
98+ return shortenString ( toChecksumAddress ( account ) )
9999 }
100100 return 'Unlock your wallet'
101101 }
You can’t perform that action at this time.
0 commit comments