Skip to content

Commit

Permalink
refactor: delete unused useTransactions
Browse files Browse the repository at this point in the history
  • Loading branch information
fionnachan committed Dec 3, 2024
1 parent c24212d commit 5b0f74e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,8 @@ export interface TransactionActions {
) => void
}

export type ArbTokenBridgeTransactions = {
transactions: Transaction[]
} & Pick<TransactionActions, 'addTransaction' | 'updateTransaction'>

export interface ArbTokenBridge {
bridgeTokens: ContractStorage<ERC20BridgeToken> | undefined
eth: ArbTokenBridgeEth
token: ArbTokenBridgeToken
transactions: ArbTokenBridgeTransactions
}
9 changes: 0 additions & 9 deletions packages/arb-token-bridge-ui/src/hooks/useArbTokenBridge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from '@arbitrum/sdk'
import { L2ToL1TransactionEvent as ClassicL2ToL1TransactionEvent } from '@arbitrum/sdk/dist/lib/abi/ArbSys'

import useTransactions from './useTransactions'
import {
ArbTokenBridge,
ContractStorage,
Expand Down Expand Up @@ -137,9 +136,6 @@ export const useArbTokenBridge = (

const l1NetworkID = useMemo(() => String(l1.network.id), [l1.network.id])

const [transactions, { addTransaction, updateTransaction }] =
useTransactions()

const removeTokensFromList = (listID: number) => {
setBridgeTokens(prevBridgeTokens => {
const newBridgeTokens = { ...prevBridgeTokens }
Expand Down Expand Up @@ -537,11 +533,6 @@ export const useArbTokenBridge = (
removeTokensFromList,
updateTokenData,
triggerOutbox: triggerOutboxToken
},
transactions: {
transactions,
updateTransaction,
addTransaction
}
}
}

0 comments on commit 5b0f74e

Please sign in to comment.