Skip to content

Commit

Permalink
Apply package version as controller base provider version
Browse files Browse the repository at this point in the history
  • Loading branch information
JunichiSugiura committed Dec 18, 2024
1 parent b041110 commit 3d83886
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
3 changes: 2 additions & 1 deletion packages/controller/src/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,15 @@ import {
WalletEventListener,
WalletEvents,
} from "@starknet-io/types-js";
import manifest from "../package.json";

import { icon } from "./icon";
import { ProviderOptions } from "./types";

export default abstract class BaseProvider implements StarknetWindowObject {
public id = "controller";
public name = "Controller";
public version = "0.4.0";
public version = manifest.version;
public icon = icon;

public rpc: URL;
Expand Down
2 changes: 1 addition & 1 deletion packages/controller/src/telegram/backend.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { cloudStorage, openLink } from "@telegram-apps/sdk";
import { UnifiedBackend } from "src/session/backend";
import { UnifiedBackend } from "../session/backend";

/**
* Implements the UnifiedBackend interface for Telegram storage operations.
Expand Down
5 changes: 2 additions & 3 deletions packages/controller/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@cartridge/tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"rootDir": "./src",
"rootDir": ".",
"outDir": "./dist",
"composite": false,
"incremental": false,
"moduleResolution": "node"
},
"include": ["src/**/*"]
"include": ["src/**/*", "package.json"]
}
2 changes: 1 addition & 1 deletion packages/profile/src/components/inventory/token/token.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ function ERC20() {

const compatibility = useMemo(() => {
if (!version) return false;
return compare(version, "0.4.0", ">=");
return compare(version, "0.5.6", ">=");
}, [version]);

if (!t) {
Expand Down

0 comments on commit 3d83886

Please sign in to comment.