Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Oct 30, 2024
1 parent 4f813ab commit ec67dec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils/registerNewNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,16 @@ export const registerNewNetwork = async (
return registerCustomArbitrumNetwork(arbitrumNetwork);
};

export const registerNewNetworkFromParentPublicClient = async <TChain extends Chain | undefined>({
export async function registerNewNetworkFromParentPublicClient<TChain extends Chain | undefined>({
parentChainPublicClient,
rollupAddress,
}: {
parentChainPublicClient: PublicClient<Transport, TChain>;
rollupAddress: Address;
}): Promise<ArbitrumNetwork> => {
}): Promise<ArbitrumNetwork> {
const arbitrumNetwork = await prepareRegisterNewNetworkParams({
parentChainPublicClient,
rollupAddress,
});
return registerCustomArbitrumNetwork(arbitrumNetwork);
};
}

0 comments on commit ec67dec

Please sign in to comment.