From d2f333e8d53b95897e56e84624783070e15bd0e0 Mon Sep 17 00:00:00 2001 From: Flouse <1297478+Flouse@users.noreply.github.com> Date: Tue, 22 Aug 2023 15:31:39 +0000 Subject: [PATCH 1/2] chore: format code in apps/godwoken-bridge/src/components/Withdrawal/ListV1.tsx --- .../src/components/Withdrawal/ListV1.tsx | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/apps/godwoken-bridge/src/components/Withdrawal/ListV1.tsx b/apps/godwoken-bridge/src/components/Withdrawal/ListV1.tsx index cd918ec4..db4f6e4c 100644 --- a/apps/godwoken-bridge/src/components/Withdrawal/ListV1.tsx +++ b/apps/godwoken-bridge/src/components/Withdrawal/ListV1.tsx @@ -99,13 +99,18 @@ export const WithdrawalList: React.FC = ({ txHistory: localTxHistory, rem return withdrawalList?.filter((cw) => ["succeed", "failed"].includes(cw.status)) || []; }, [withdrawalList]); - const loadPendingHistory = useCallback((localTxHistory: L1TxHistoryInterface[]) => { - if (localTxHistory.length === 0) { - setPendingHistory([]); - return; - } - getPendingHistoriesByRPC(lightGodwoken as LightGodwokenV1, localTxHistory).then((list) => setPendingHistory(list)); - }, [localTxHistory, lightGodwoken]); + const loadPendingHistory = useCallback( + (localTxHistory: L1TxHistoryInterface[]) => { + if (localTxHistory.length === 0) { + setPendingHistory([]); + return; + } + getPendingHistoriesByRPC(lightGodwoken as LightGodwokenV1, localTxHistory).then((list) => + setPendingHistory(list), + ); + }, + [localTxHistory, lightGodwoken], + ); useDebounceEffect(() => loadPendingHistory(localTxHistory), [localTxHistory]); From 0e12746e2b4e6d0b59e31f9b3ab7a05c480b245a Mon Sep 17 00:00:00 2001 From: Flouse <1297478+Flouse@users.noreply.github.com> Date: Wed, 23 Aug 2023 07:21:20 +0000 Subject: [PATCH 2/2] Bump Godwoken Bridge to 0.4.5 --- CHANGELOG.md | 3 +++ apps/godwoken-bridge/package.json | 2 +- packages/light-godwoken/package.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bf29a035..fcde41be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # [Changelog](https://keepachangelog.com/en/1.0.0/) +# 0.4.5 (2023-08-22) +- Update block_interval_seconds of Godwoken mainnet_v1 ([#320](https://github.com/godwokenrises/light-godwoken/pull/320)) + # 0.4.4 (2023-06-21) ### Bug Fixes - update readme file and godwoken bridge script for development([#308](https://github.com/godwokenrises/light-godwoken/commit/1d347d2e3c7af53efa5597606d84ea4f3523d35f))(@lee920217) diff --git a/apps/godwoken-bridge/package.json b/apps/godwoken-bridge/package.json index 7ae399ff..05cab96c 100644 --- a/apps/godwoken-bridge/package.json +++ b/apps/godwoken-bridge/package.json @@ -1,6 +1,6 @@ { "name": "godwoken-bridge", - "version": "0.4.4", + "version": "0.4.5", "private": true, "scripts": { "start": "REACT_APP_COMMIT_HASH=$(git rev-parse --short HEAD) vite --open", diff --git a/packages/light-godwoken/package.json b/packages/light-godwoken/package.json index 4cf000e1..b24b672a 100644 --- a/packages/light-godwoken/package.json +++ b/packages/light-godwoken/package.json @@ -1,6 +1,6 @@ { "name": "light-godwoken", - "version": "0.3.3", + "version": "0.3.4", "license": "MIT", "scripts": { "test": "jest",