Skip to content

Commit

Permalink
Remove call to createRollupFetchTransactionHash
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstph-dvx committed Oct 31, 2024
1 parent bdaba51 commit 55a6404
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/utils/registerNewNetwork.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ import {
registerCustomArbitrumNetwork,
} from '@arbitrum/sdk';
import { testnets } from '../chains';
import {
createRollupFetchTransactionHash,
getRollupInitializedEvents,
} from '../createRollupFetchTransactionHash';
import { getRollupInitializedEvents } from '../createRollupFetchTransactionHash';
import { Address, Chain, PublicClient, Transport } from 'viem';
import { publicClientToProvider } from '../ethers-compat/publicClientToProvider';
import { createRollupPrepareTransactionReceipt } from '../createRollupPrepareTransactionReceipt';
Expand All @@ -34,10 +31,7 @@ export async function prepareArbitrumNetwork<TChain extends Chain | undefined>(
}

// Fetch native token address and TokenBridge address
const rollupCreationtransactionHash = await createRollupFetchTransactionHash({
rollup,
publicClient: parentChainPublicClient,
});
const rollupCreationtransactionHash = rollupInitializedEvent[0].transactionHash;
const transactionReceipt = createRollupPrepareTransactionReceipt(
await parentChainPublicClient.waitForTransactionReceipt({
hash: rollupCreationtransactionHash,
Expand Down

0 comments on commit 55a6404

Please sign in to comment.