Skip to content
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"@heroui/system": "2.4.20",
"@heroui/tabs": "^2.2.21",
"@heroui/theme": "2.4.20",
"@linera/client": "0.15.3",
"@linera/signer": "0.15.3",
"@linera/client": "0.15.4",
"@linera/signer": "0.15.4",
"@react-aria/ssr": "3.9.10",
"@react-aria/visually-hidden": "3.8.26",
"@tailwindcss/postcss": "4.1.11",
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/lib/linera/lib/linera-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ export class LineraAdapter {
const chainId = await faucet.claimChain(wallet, address);

const signer = await new DynamicSigner(dynamicWallet);
const client = await new Client(wallet, signer);
const client = await new Client(wallet, signer, true);
console.log("✅ Using Linera chain: ", chainId);

client.onNotification((notification : any) => {
let newBlock = notification.reason.NewBlock;
if (!newBlock) return;

// Notify all registered callbacks
this.notificationCallbacks.forEach(callback => {
try {
Expand Down Expand Up @@ -202,7 +202,7 @@ export class LineraAdapter {

onNewBlockNotification(callback: (notification: any) => void): () => void {
this.notificationCallbacks.add(callback);

// Return unsubscribe function
return () => {
this.notificationCallbacks.delete(callback);
Expand Down