File tree 2 files changed +9
-6
lines changed 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ import { getChainDisplayName } from './utils';
10
10
export function ChainConnectionWarning ( { chains } : { chains : ChainName [ ] } ) {
11
11
const multiProvider = useMultiProvider ( ) ;
12
12
const chainMetadataList = useMemo (
13
- ( ) => chains . map ( ( c ) => multiProvider . getChainMetadata ( c ) ) ,
13
+ ( ) =>
14
+ chains . map ( ( c ) => ( c ? multiProvider . tryGetChainMetadata ( c ) : undefined ) ) . filter ( ( c ) => ! ! c ) ,
14
15
[ chains , multiProvider ] ,
15
16
) ;
16
17
Original file line number Diff line number Diff line change @@ -73,10 +73,11 @@ export async function validateWarpDeploymentForm(
73
73
return { form : warpRouteDeployConfigResult . error } ;
74
74
}
75
75
76
- const balanceResult = await validateAccountBalances ( chainNames , accounts , multiProvider ) ;
77
- if ( ! balanceResult . success ) {
78
- return { form : balanceResult . error } ;
79
- }
76
+ // TODO re-enable or move to later
77
+ // const balanceResult = await validateAccountBalances(chainNames, accounts, multiProvider);
78
+ // if (!balanceResult.success) {
79
+ // return { form: balanceResult.error };
80
+ // }
80
81
81
82
onSuccess ( {
82
83
type : DeploymentType . Warp ,
@@ -172,7 +173,8 @@ function assembleWarpConfig(
172
173
return success ( warpRouteConfigValidationResult . data ) ;
173
174
}
174
175
175
- async function validateAccountBalances (
176
+ // TODO remove export
177
+ export async function validateAccountBalances (
176
178
chains : ChainName [ ] ,
177
179
accounts : Record < ProtocolType , AccountInfo > ,
178
180
multiProvider : MultiProtocolProvider ,
You can’t perform that action at this time.
0 commit comments