Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Use same netconfig as wallet #34

Merged
merged 1 commit into from
Aug 18, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions ui/src/context/Application.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,13 @@ const Provider = ({ children }) => {
const [state, dispatch] = useReducer(reducer, defaultState);
const { brandToInfo } = state;

const leader = makeLeader();

const retrySetup = async () => {
const unserializer = await E(walletP).getUnserializer();
const [unserializer, netConfig] = await Promise.all([
E(walletP).getUnserializer(),
E(walletP).getNetConfig(),
]);
const leader = makeLeader(netConfig);

watchPurses(dispatch, brandToInfo).catch(err =>
console.error('got watchPurses err', err),
);
Expand Down