diff --git a/src/background/service/customTestnet.ts b/src/background/service/customTestnet.ts index 1f03ca007e9..b122417c1cc 100644 --- a/src/background/service/customTestnet.ts +++ b/src/background/service/customTestnet.ts @@ -659,7 +659,7 @@ const createClientByChain = (chain: TestnetChainBase) => { }, }, }), - transport: http(chain.rpcUrl), + transport: http(chain.rpcUrl, { timeout: 300000 }), }); }; diff --git a/src/ui/views/Bridge/Component/BridgeContent.tsx b/src/ui/views/Bridge/Component/BridgeContent.tsx index d7001d23709..ccfffe9ab00 100644 --- a/src/ui/views/Bridge/Component/BridgeContent.tsx +++ b/src/ui/views/Bridge/Component/BridgeContent.tsx @@ -648,10 +648,10 @@ export const BridgeContent = () => { setTimeout(() => { setIsShowSign(false); // setPayAmount(''); - setTimeout(() => { - history.replace('/'); - }, 500); - }, 1000); + // setTimeout(() => { + history.replace('/'); + // }, 500); + }, 500); }} /> diff --git a/src/ui/views/Swap/Component/Main.tsx b/src/ui/views/Swap/Component/Main.tsx index 1c16a62fdbb..54b1f41e4b6 100644 --- a/src/ui/views/Swap/Component/Main.tsx +++ b/src/ui/views/Swap/Component/Main.tsx @@ -744,10 +744,10 @@ export const Main = () => { setTimeout(() => { setIsShowSign(false); // setPayAmount(''); - setTimeout(() => { - history.replace('/'); - }, 500); - }, 1000); + // setTimeout(() => { + history.replace('/'); + // }, 500); + }, 500); }} />