Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jfschwarz committed Feb 12, 2024
1 parent 5e45722 commit 4188978
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions extension/src/browser/ProvideProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ const ProvideProvider: React.FC<Props> = ({ simulate, children }) => {
encodeSingle(txState.input)
)

if (!chainId) {
throw new Error('chainId is undefined')
}

console.log(
transactions.length === 1
? 'submitting transaction...'
Expand All @@ -130,7 +126,7 @@ const ProvideProvider: React.FC<Props> = ({ simulate, children }) => {
? metaTransactions[0]
: encodeMulti(
metaTransactions,
MULTI_SEND_ADDRESS[chainId as ChainId]
MULTI_SEND_ADDRESS[connection.chainId]
),
],
})
Expand All @@ -142,7 +138,7 @@ const ProvideProvider: React.FC<Props> = ({ simulate, children }) => {
`multi-send batch has been submitted with transaction hash ${batchTransactionHash}`
)
return batchTransactionHash
}, [transactions, wrappingProvider, dispatch, chainId])
}, [transactions, wrappingProvider, dispatch, connection.chainId])

return (
<ProviderContext.Provider
Expand Down

0 comments on commit 4188978

Please sign in to comment.