From 4188978da359a6afbfa789e3c328a68e5be9d307 Mon Sep 17 00:00:00 2001 From: Jan-Felix Date: Mon, 12 Feb 2024 13:18:42 +0100 Subject: [PATCH] small fix --- extension/src/browser/ProvideProvider.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/extension/src/browser/ProvideProvider.tsx b/extension/src/browser/ProvideProvider.tsx index 6b1b75dc..cf6c34d8 100644 --- a/extension/src/browser/ProvideProvider.tsx +++ b/extension/src/browser/ProvideProvider.tsx @@ -112,10 +112,6 @@ const ProvideProvider: React.FC = ({ simulate, children }) => { encodeSingle(txState.input) ) - if (!chainId) { - throw new Error('chainId is undefined') - } - console.log( transactions.length === 1 ? 'submitting transaction...' @@ -130,7 +126,7 @@ const ProvideProvider: React.FC = ({ simulate, children }) => { ? metaTransactions[0] : encodeMulti( metaTransactions, - MULTI_SEND_ADDRESS[chainId as ChainId] + MULTI_SEND_ADDRESS[connection.chainId] ), ], }) @@ -142,7 +138,7 @@ const ProvideProvider: React.FC = ({ simulate, children }) => { `multi-send batch has been submitted with transaction hash ${batchTransactionHash}` ) return batchTransactionHash - }, [transactions, wrappingProvider, dispatch, chainId]) + }, [transactions, wrappingProvider, dispatch, connection.chainId]) return (