Skip to content

Commit b29d096

Browse files
authored
Merge pull request #75 from ltonetwork/WithRelayService
update for merge
2 parents 5259e35 + 3ab9561 commit b29d096

File tree

4 files changed

+5
-9
lines changed

4 files changed

+5
-9
lines changed

src/components/Ownable.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ 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";
23+
// import asDownload from "../utils/asDownload";
24+
// import shortId from "../utils/shortId";
2525
import If from "./If";
2626
import EventChainService from "../services/EventChain.service";
2727
import { sendOwnable } from "../services/Relay.service";
28-
import IDBService from "../services/IDB.service";
28+
// import IDBService from "../services/IDB.service";
2929

3030
interface OwnableProps {
3131
chain: EventChain;

src/services/CheckMessages.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export class checkForMessages {
3434
static async valueOfValidCids() {
3535
try {
3636
const validCids = await this.getValidCids();
37-
if (validCids.length == 0) return null;
37+
if (validCids.length === 0) return null;
3838
return validCids.length;
3939
} catch (error) {
4040
console.log(`${error}, could not get value`);

src/services/EventChain.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ export default class EventChainService {
113113
const storedState = (await IDBService.hasStore(`ownable:${id}`))
114114
? await IDBService.get(`ownable:${id}`, "state")
115115
: undefined;
116-
const instance = state instanceof Binary ? state.hex : state;
116+
// const instance = state instanceof Binary ? state.hex : state;
117117
if (storedState !== (state instanceof Binary ? state.hex : state))
118118
return null;
119119

src/services/Package.service.ts

-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import LocalStorageService from "./LocalStorage.service";
2-
import LTOService from "./LTO.service";
32
import {
43
TypedPackageCapabilities,
54
TypedPackage,
@@ -12,9 +11,6 @@ import calculateCid from "../utils/calculateCid";
1211
import { TypedCosmWasmMsg } from "../interfaces/TypedCosmWasmMsg";
1312
import TypedDict from "../interfaces/TypedDict";
1413
import { readRelayData } from "./Relay.service";
15-
import asDownload from "../utils/asDownload";
16-
import OwnableService from "./Ownable.service";
17-
import { LTO, Account, Message, Relay } from "@ltonetwork/lto";
1814
import { Buffer } from "buffer";
1915

2016
const exampleUrl = process.env.REACT_APP_OWNABLE_EXAMPLES_URL;

0 commit comments

Comments
 (0)