Skip to content

Commit

Permalink
Merge pull request #75 from ltonetwork/WithRelayService
Browse files Browse the repository at this point in the history
update for merge
  • Loading branch information
stiemsdev authored May 30, 2024
2 parents 5259e35 + 3ab9561 commit b29d096
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/Ownable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ import TypedDict from "../interfaces/TypedDict";
import { TypedPackage } from "../interfaces/TypedPackage";
import Overlay, { OverlayBanner } from "./Overlay";
import LTOService from "../services/LTO.service";
import asDownload from "../utils/asDownload";
import shortId from "../utils/shortId";
// import asDownload from "../utils/asDownload";
// import shortId from "../utils/shortId";
import If from "./If";
import EventChainService from "../services/EventChain.service";
import { sendOwnable } from "../services/Relay.service";
import IDBService from "../services/IDB.service";
// import IDBService from "../services/IDB.service";

interface OwnableProps {
chain: EventChain;
Expand Down
2 changes: 1 addition & 1 deletion src/services/CheckMessages.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class checkForMessages {
static async valueOfValidCids() {
try {
const validCids = await this.getValidCids();
if (validCids.length == 0) return null;
if (validCids.length === 0) return null;
return validCids.length;
} catch (error) {
console.log(`${error}, could not get value`);
Expand Down
2 changes: 1 addition & 1 deletion src/services/EventChain.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export default class EventChainService {
const storedState = (await IDBService.hasStore(`ownable:${id}`))
? await IDBService.get(`ownable:${id}`, "state")
: undefined;
const instance = state instanceof Binary ? state.hex : state;
// const instance = state instanceof Binary ? state.hex : state;
if (storedState !== (state instanceof Binary ? state.hex : state))
return null;

Expand Down
4 changes: 0 additions & 4 deletions src/services/Package.service.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import LocalStorageService from "./LocalStorage.service";
import LTOService from "./LTO.service";
import {
TypedPackageCapabilities,
TypedPackage,
Expand All @@ -12,9 +11,6 @@ import calculateCid from "../utils/calculateCid";
import { TypedCosmWasmMsg } from "../interfaces/TypedCosmWasmMsg";
import TypedDict from "../interfaces/TypedDict";
import { readRelayData } from "./Relay.service";
import asDownload from "../utils/asDownload";
import OwnableService from "./Ownable.service";
import { LTO, Account, Message, Relay } from "@ltonetwork/lto";
import { Buffer } from "buffer";

const exampleUrl = process.env.REACT_APP_OWNABLE_EXAMPLES_URL;
Expand Down

0 comments on commit b29d096

Please sign in to comment.