Merge branch 'fix/session-update-handling' into main
This commit is contained in:
commit
6eec915a46
@ -190,6 +190,12 @@ export function ClientContextProvider({ children }: { children: ReactNode | Reac
|
||||
setPairings(_client.pairing.topics);
|
||||
});
|
||||
|
||||
_client.on(CLIENT_EVENTS.session.updated, (updatedSession: SessionTypes.Settled) => {
|
||||
console.log("EVENT", "session_updated");
|
||||
setChains(updatedSession.permissions.blockchain.chains);
|
||||
setAccounts(updatedSession.state.accounts);
|
||||
});
|
||||
|
||||
_client.on(CLIENT_EVENTS.session.deleted, () => {
|
||||
console.log("EVENT", "session_deleted");
|
||||
resetApp();
|
||||
|
Loading…
Reference in New Issue
Block a user