make tsc happy
Signed-off-by: Uncle Fatso <uncle.fatso@ghostchain.io>
This commit is contained in:
parent
a0a076b6dc
commit
5e96d94b85
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ghost-lite",
|
||||
"version": "0.2.0",
|
||||
"version": "0.2.1",
|
||||
"description": "Web application for Ghost and Casper chain.",
|
||||
"author": "Uncle f4ts0 <f4ts0@ghostchain.io>",
|
||||
"maintainers": [
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { HeartPulse, SendToBack, Book, Users, Handshake } from "lucide-react"
|
||||
import { HeartPulse, SendToBack, Book, Users } from "lucide-react"
|
||||
import { FaGithub } from "react-icons/fa"
|
||||
import { Link, useLocation } from "react-router-dom"
|
||||
import { useEffect } from "react"
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
import useSWR from "swr"
|
||||
|
||||
import { getDynamicBuilder, getLookupFn } from "@polkadot-api/metadata-builders"
|
||||
import { mergeUint8, toHex, fromHex } from "@polkadot-api/utils"
|
||||
import { type SS58String, Binary, Enum } from "@polkadot-api/substrate-bindings"
|
||||
import { mergeUint8, toHex } from "@polkadot-api/utils"
|
||||
import { type SS58String, Enum } from "@polkadot-api/substrate-bindings"
|
||||
|
||||
import { useUnstableProvider } from "./useUnstableProvider"
|
||||
import { useMetadata } from "./useMetadata"
|
||||
|
||||
@ -14,7 +14,7 @@ export type ValidatorDetails = {
|
||||
export const useCurrentValidators = ({ address }: { address: string | undefined }) => {
|
||||
const { chainHead$, chainId } = useUnstableProvider()
|
||||
const metadata = useMetadata()
|
||||
const { data: currentValidators, error } = useSWRSubscription(
|
||||
const { data: currentValidators } = useSWRSubscription(
|
||||
chainHead$ && address && chainId && metadata
|
||||
? ["validators", chainHead$, address, chainId, metadata]
|
||||
: null,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user