From 91496a04f3af0055c6b494b352d0371ff0c98a22 Mon Sep 17 00:00:00 2001 From: zzq0826 <770166635@qq.com> Date: Mon, 30 Dec 2024 10:58:11 +0800 Subject: [PATCH] Fetch price fee when the network changes --- src/contexts/PriceFeeProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/contexts/PriceFeeProvider.tsx b/src/contexts/PriceFeeProvider.tsx index aa446664f..8cecb428b 100644 --- a/src/contexts/PriceFeeProvider.tsx +++ b/src/contexts/PriceFeeProvider.tsx @@ -153,7 +153,7 @@ export const PriceFeeProvider = ({ children }) => { // setGasPrice(null) setErrorMessage(trimErrorMessage(error.message)) }) - }, [blockNumber]) + }, [blockNumber, networksAndSigners]) const l1Token = useMemo( () => tokenList.find(item => item.chainId === CHAIN_ID.L1 && item.symbol === tokenSymbol) ?? ({} as any as Token),