Skip to content

Commit eebb343

Browse files
authored
Merge pull request #80 from ltonetwork/WithRelayService
delete unused imports
2 parents 0640eb1 + ea8c0dc commit eebb343

File tree

3 files changed

+1
-7
lines changed

3 files changed

+1
-7
lines changed

src/components/Ownable.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ import TypedDict from "../interfaces/TypedDict";
2020
import { TypedPackage } from "../interfaces/TypedPackage";
2121
import Overlay, { OverlayBanner } from "./Overlay";
2222
import LTOService from "../services/LTO.service";
23-
import asDownload from "../utils/asDownload";
24-
import shortId from "../utils/shortId";
2523
import If from "./If";
2624
import EventChainService from "../services/EventChain.service";
2725
import { RelayService } from "../services/Relay.service";
28-
import IDBService from "../services/IDB.service";
2926
import { enqueueSnackbar } from "notistack";
3027

3128
interface OwnableProps {

src/services/EventChain.service.ts

-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ import { StateDump } from "./Ownable.service";
55
import LocalStorageService from "./LocalStorage.service";
66
import TypedDict from "../interfaces/TypedDict";
77
import { IEventChainJSON } from "@ltonetwork/lto/interfaces";
8-
import PackageService from "./Package.service";
9-
import { Buffer } from "buffer";
108

119
interface StoredChainInfo {
1210
chain: IEventChainJSON;
@@ -94,7 +92,6 @@ export default class EventChainService {
9492
const storedState = (await IDBService.hasStore(`ownable:${id}`))
9593
? await IDBService.get(`ownable:${id}`, "state")
9694
: undefined;
97-
const instance = state instanceof Binary ? state.hex : state;
9895
if (storedState !== (state instanceof Binary ? state.hex : state))
9996
return null;
10097

src/services/Relay.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { LTO, Account, Message, Relay } from "@ltonetwork/lto";
1+
import { LTO, Message, Relay } from "@ltonetwork/lto";
22
import SessionStorageService from "./SessionStorage.service";
33
import axios from "axios";
44
import sendFile from "./relayhelper.service";

0 commit comments

Comments
 (0)