Skip to content

Commit 9bb5933

Browse files
committed
update linera packages
1 parent c2b0bd8 commit 9bb5933

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

frontend/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@
3434
"@heroui/system": "2.4.20",
3535
"@heroui/tabs": "^2.2.21",
3636
"@heroui/theme": "2.4.20",
37-
"@linera/client": "0.15.5",
38-
"@linera/signer": "0.15.5",
37+
"@linera/client": "0.15.7",
3938
"@react-aria/ssr": "3.9.10",
4039
"@react-aria/visually-hidden": "3.8.26",
4140
"@tailwindcss/postcss": "4.1.11",

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import initLinera, { Faucet, Client, Wallet, Application } from "@linera/client";
1+
import { initialize, Faucet, Client, Wallet, Application } from "@linera/client";
22
import type { Wallet as DynamicWallet } from "@dynamic-labs/sdk-react-core";
33
import { DynamicSigner } from "./dynamic-signer";
44

@@ -41,7 +41,7 @@ export class LineraAdapter {
4141
console.log("🔗 Connecting with Dynamic wallet:", address);
4242

4343
try {
44-
if (!this.wasmInitPromise) this.wasmInitPromise = initLinera();
44+
if (!this.wasmInitPromise) this.wasmInitPromise = initialize();
4545
await this.wasmInitPromise;
4646
console.log("✅ Linera WASM modules initialized successfully");
4747
} catch (e) {
@@ -105,15 +105,15 @@ export class LineraAdapter {
105105
async setApplications(appId: string, previousAppIds: string[]) {
106106
if (!this.provider) throw new Error("Not connected to Linera");
107107

108-
const application = await this.provider.client.frontend().application(appId);
108+
const application = await this.provider.client.application(appId);
109109

110110
if (!application) throw new Error("Failed to get application");
111111
this.application = application;
112112
console.log("✅ Linera application set successfully: ", appId);
113113

114114
const applications = []
115115
for (const appId of previousAppIds) {
116-
const application = await this.provider.client.frontend().application(appId);
116+
const application = await this.provider.client.application(appId);
117117
if (!application) throw new Error("Failed to get previous application");
118118
applications.push(application);
119119
}

0 commit comments

Comments
 (0)