fix: provider is by default null and account page redirect to provider setup (#437)

This commit is contained in:
Vojtech Simetka
2022-06-24 14:03:37 +02:00
committed by GitHub
parent a756eedc49
commit 2e0eeb7a1b
9 changed files with 48 additions and 42 deletions
-5
View File
@@ -1,4 +1,3 @@
import axios from 'axios'
import { getJson, postJson, sendRequest } from './net'
interface DesktopStatus {
@@ -16,10 +15,6 @@ export async function getDesktopStatus(): Promise<DesktopStatus> {
return response as DesktopStatus
}
export async function getGasFromFaucet(address: string): Promise<void> {
await axios.post(`http://getxdai.co/${address}/0.1`)
}
export async function upgradeToLightNode(rpcProvider: string): Promise<void> {
await updateDesktopConfiguration({
'chain-enable': true,