File tree Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Expand file tree Collapse file tree 2 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const EtherscanInput = ({
24
24
const [ chainId , setChainId ] = useState < string > ( "" ) ;
25
25
const [ apiKey , setApiKey ] = useState < string > ( "" ) ;
26
26
const [ error , setError ] = useState < string > ( "" ) ;
27
- const { sourcifyChains, sourcifyChainMap } = useContext ( Context ) ;
27
+ const { sourcifyChains } = useContext ( Context ) ;
28
28
const chainsIdsWithEtherscanAPI = sourcifyChains
29
29
. filter ( ( chain ) => chain . etherscanAPI && chain . supported )
30
30
. map ( ( chainId ) => chainId . chainId ) ;
@@ -95,13 +95,11 @@ const EtherscanInput = ({
95
95
handleChainIdChange = { handleChainIdChange }
96
96
availableChains = { chainsIdsWithEtherscanAPI }
97
97
/>
98
- { sourcifyChainMap [ parseInt ( chainId ) ] ?. etherscanAPI && (
99
- < div className = "mt-1" >
100
- < p className = "text-xs text-gray-400 text-right" >
101
- Powered by { sourcifyChainMap [ parseInt ( chainId ) ] ?. etherscanAPI } APIs
102
- </ p >
103
- </ div >
104
- ) }
98
+ < div className = "mt-1" >
99
+ < p className = "text-xs text-gray-400 text-right" >
100
+ Powered by Etherscan.io APIs
101
+ </ p >
102
+ </ div >
105
103
</ div >
106
104
) ;
107
105
} ;
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ export type Chain = {
96
96
network : string ;
97
97
networkId : number ;
98
98
supported ?: boolean ;
99
- etherscanAPI ?: string ;
99
+ etherscanAPI ?: boolean ;
100
100
} ;
101
101
102
102
export type ChainMap = {
You can’t perform that action at this time.
0 commit comments