Skip to content

Commit

Permalink
Merge branch 'hotfix/v0.5.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
Luphia1984 committed Jun 20, 2023
2 parents 651a97f + a8116df commit 08c18ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 0 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import IBlockchain from "./src/interfaces/iblockchain";
import IConnector from "./src/interfaces/iconnector";
import IEnv from "./src/interfaces/ienv";
import IJSON from "./src/interfaces/ijson";
import WalletConnect from "@walletconnect/core";

declare class Lunar {
private static instance: Lunar;
Expand All @@ -20,7 +19,6 @@ declare class Lunar {
public isConnected: boolean;
public address: string;
public blockchain: IBlockchain;
public walletConnect: WalletConnect | undefined;

public constructor();
public resetEvents(): void;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cafeca/lunar",
"version": "0.5.8",
"version": "0.5.9",
"description": "Blockchain Connect Module",
"main": "dist/index.js",
"files": [
Expand Down
8 changes: 2 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { recoverAddress } from './libs/common';
import IJSON from './interfaces/ijson';
import { EventEmitter } from 'events';
import { keccak256 } from '@cafeca/keccak';
import WalletConnect from "@walletconnect/core";
// import { version } from '../package.json';

declare global {
interface Window { Lunar: any; }
Expand All @@ -23,12 +21,10 @@ declare global {

export class Lunar {
private static instance: Lunar;
// static version = `v${version}`;
public static version = `v0.5.8`;
public static version = `v0.5.9`;
public static Blockchains = Blockchains;
public static Wallets = Wallets;
public static keccak256 = keccak256;
public walletConnect: WalletConnect|undefined;

public static getInstance(): Lunar {
if (!Lunar.instance) {
Expand Down Expand Up @@ -60,7 +56,6 @@ export class Lunar {

constructor() {
this.connector = ConnectorFactory.create();
this.walletConnect = new WalletConnect();
}

public resetEvents() {
Expand Down Expand Up @@ -195,6 +190,7 @@ export class Lunar {
try {
result = await this.connector?.signTypedData(params) || '0x';
} catch (error) {
throw error;
// ++ ToDo: finish in v0.6.0
}
return result;
Expand Down

0 comments on commit 08c18ad

Please sign in to comment.