fix(with-solana): adds missing session_update
handler
This commit is contained in:
parent
b38452e02c
commit
9bc970e8bc
@ -211,6 +211,7 @@ export default function App() {
|
|||||||
address={account}
|
address={account}
|
||||||
chainId={chain}
|
chainId={chain}
|
||||||
balances={balances}
|
balances={balances}
|
||||||
|
isTestnet={isTestnet}
|
||||||
actions={getSolanaActions()}
|
actions={getSolanaActions()}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
@ -90,7 +90,7 @@ interface BlockchainProps {
|
|||||||
onClick?: (chain: string) => void;
|
onClick?: (chain: string) => void;
|
||||||
balances?: AccountBalances;
|
balances?: AccountBalances;
|
||||||
actions?: AccountAction[];
|
actions?: AccountAction[];
|
||||||
isTestnet?: boolean;
|
isTestnet: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
interface BlockchainDisplayData {
|
interface BlockchainDisplayData {
|
||||||
|
@ -123,6 +123,11 @@ export function ClientContextProvider({ children }: { children: ReactNode | Reac
|
|||||||
setPairings(_client.pairing.topics);
|
setPairings(_client.pairing.topics);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
_client.on(CLIENT_EVENTS.session.updated, (updatedSession: SessionTypes.Settled) => {
|
||||||
|
console.log("EVENT", "session_updated");
|
||||||
|
onSessionConnected(updatedSession);
|
||||||
|
});
|
||||||
|
|
||||||
_client.on(CLIENT_EVENTS.session.deleted, () => {
|
_client.on(CLIENT_EVENTS.session.deleted, () => {
|
||||||
console.log("EVENT", "session_deleted");
|
console.log("EVENT", "session_deleted");
|
||||||
resetApp();
|
resetApp();
|
||||||
|
Loading…
Reference in New Issue
Block a user