Skip to content

Commit 1086fca

Browse files
committed
Work with string types in JS api
1 parent 89496ed commit 1086fca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extension/src/signer/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export class EmbeddedEIP191Signer implements IJsSigner {
1313
return new EmbeddedEIP191Signer(wallet.privateKey);
1414
}
1515

16-
async sign(owner: string, value: Uint8Array): Promise<string> {
16+
async sign(owner: string, value: string): Promise<string> {
1717
if (typeof owner !== 'string' || !ethers.isAddress(owner) || this.wallet.address.toLowerCase() !== owner.toLowerCase()) {
1818
throw new Error('Invalid owner address');
1919
}

extension/src/wallet/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export class Server {
1111
async setWallet(wallet: string) {
1212
this.wallet = wallet;
1313
await linera;
14-
this.client = await new linera.Client({} as linera.Wallet, {} as linera.SignerError); // Replace with actual wallet initialization
14+
this.client = await new linera.Client({} as linera.Wallet, {} as linera.IJsSigner); // Replace with actual wallet initialization
1515
this.client.onNotification((notification: any) => {
1616
console.debug('got notification for', this.subscribers.size, 'subscribers:', notification);
1717
for (const subscriber of this.subscribers.values()) {

0 commit comments

Comments
 (0)