Skip to content

Commit

Permalink
Bump Godwoken Bridge to 0.4.5 (#321)
Browse files Browse the repository at this point in the history
Prepare to sync develop branch to mainnet branch next week.
- #317

## Related Event
- godwokenrises/godwoken#1087
  • Loading branch information
Flouse authored Aug 28, 2023
2 parents 3a297a3 + 0e12746 commit 5666b19
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion apps/godwoken-bridge/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
19 changes: 12 additions & 7 deletions apps/godwoken-bridge/src/components/Withdrawal/ListV1.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,18 @@ export const WithdrawalList: React.FC<Props> = ({ 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]);

Expand Down
2 changes: 1 addition & 1 deletion packages/light-godwoken/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "light-godwoken",
"version": "0.3.3",
"version": "0.3.4",
"license": "MIT",
"scripts": {
"test": "jest",
Expand Down

1 comment on commit 5666b19

@vercel
Copy link

@vercel vercel bot commented on 5666b19 Aug 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.