Skip to content

Commit 4ae2cfd

Browse files
committed
frontend: ignore incoming messages
1 parent 7f795a3 commit 4ae2cfd

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434
"@heroui/system": "2.4.20",
3535
"@heroui/tabs": "^2.2.21",
3636
"@heroui/theme": "2.4.20",
37-
"@linera/client": "0.15.3",
38-
"@linera/signer": "0.15.3",
37+
"@linera/client": "0.15.4",
38+
"@linera/signer": "0.15.4",
3939
"@react-aria/ssr": "3.9.10",
4040
"@react-aria/visually-hidden": "3.8.26",
4141
"@tailwindcss/postcss": "4.1.11",

frontend/src/lib/linera/lib/linera-adapter.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ export class LineraAdapter {
5959
const chainId = await faucet.claimChain(wallet, address);
6060

6161
const signer = await new DynamicSigner(dynamicWallet);
62-
const client = await new Client(wallet, signer);
62+
const client = await new Client(wallet, signer, false);
6363
console.log("✅ Linera wallet created successfully!");
6464

6565
client.onNotification((notification : any) => {
6666
let newBlock = notification.reason.NewBlock;
6767
if (!newBlock) return;
68-
68+
6969
// Notify all registered callbacks
7070
this.notificationCallbacks.forEach(callback => {
7171
try {
@@ -174,7 +174,7 @@ export class LineraAdapter {
174174

175175
onNewBlockNotification(callback: (notification: any) => void): () => void {
176176
this.notificationCallbacks.add(callback);
177-
177+
178178
// Return unsubscribe function
179179
return () => {
180180
this.notificationCallbacks.delete(callback);

0 commit comments

Comments
 (0)