From dcb6f043e9031a51c3cefdf402d9c1b1eec898ca Mon Sep 17 00:00:00 2001 From: DIYgod Date: Mon, 16 Jan 2023 20:42:18 +0000 Subject: [PATCH] fix: types errors --- src/lib/wallet-config.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/lib/wallet-config.ts b/src/lib/wallet-config.ts index 4f8c58d6..a6c2bc67 100644 --- a/src/lib/wallet-config.ts +++ b/src/lib/wallet-config.ts @@ -14,7 +14,9 @@ export const { chains, provider } = configureChains( name: "Crossbell", network: "crossbell", rpcUrls: { - default: "https://rpc.crossbell.io", + default: { + http: ["https://rpc.crossbell.io"], + }, }, iconUrl: `${IPFS_GATEWAY}QmS8zEetTb6pwdNpVjv5bz55BXiSMGP9BjTJmNcjcUT91t`, nativeCurrency: { @@ -31,7 +33,11 @@ export const { chains, provider } = configureChains( testnet: false, } as any, ], - [jsonRpcProvider({ rpc: (chain) => ({ http: chain.rpcUrls.default }) })], + [ + jsonRpcProvider({ + rpc: (chain) => ({ http: chain.rpcUrls.default.http[0] }), + }), + ], { pollingInterval: 1000, },