File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,13 @@ const EntropyGasLimitTable = ({
19
19
ethers . getDefaultProvider ( deployment . rpc )
20
20
) ;
21
21
contract . getDefaultProvider ( ) . then ( ( defaultProvider : string ) => {
22
- contract . getProviderInfoV2 ( defaultProvider ) . then ( ( providerInfo : any ) => {
23
- const gasLimit = providerInfo . defaultGasLimit ;
24
- const formattedGasLimit = gasLimit . toString ( ) ;
25
- setGasLimits ( ( prev ) => ( { ...prev , [ name ] : formattedGasLimit } ) ) ;
26
- } ) ;
22
+ contract
23
+ . getProviderInfoV2 ( defaultProvider )
24
+ . then ( ( providerInfo : any ) => {
25
+ const gasLimit = providerInfo . defaultGasLimit ;
26
+ const formattedGasLimit = gasLimit . toString ( ) ;
27
+ setGasLimits ( ( prev ) => ( { ...prev , [ name ] : formattedGasLimit } ) ) ;
28
+ } ) ;
27
29
} ) ;
28
30
}
29
31
} , [ deployments ] ) ;
@@ -52,11 +54,7 @@ const EntropyGasLimitTable = ({
52
54
</ a >
53
55
</ StyledTd >
54
56
< StyledTd >
55
- { gasLimits [ name ] === undefined ? (
56
- "Loading..."
57
- ) : (
58
- gasLimits [ name ]
59
- ) }
57
+ { gasLimits [ name ] === undefined ? "Loading..." : gasLimits [ name ] }
60
58
</ StyledTd >
61
59
</ tr >
62
60
) ) }
You can’t perform that action at this time.
0 commit comments