We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 63216fc commit c0bf0d3Copy full SHA for c0bf0d3
scripts/cli/helpers.ts
@@ -1,7 +1,7 @@
1
import * as dotenv from 'dotenv'
2
3
import { utils, providers, Wallet, Overrides } from 'ethers'
4
-import ipfsHttpClient from 'ipfs-http-client'
+import { ipfsHttpClient } from 'ipfs-http-client'
5
import * as bs58 from 'bs58'
6
7
dotenv.config()
@@ -14,7 +14,7 @@ export const defaultOverrides = (): Overrides => {
14
}
15
16
export class IPFS {
17
- static createIpfsClient(node: string): ipfsHttpClient {
+ static createIpfsClient(node: string): typeof ipfsHttpClient {
18
let url: URL
19
try {
20
url = new URL(node)
0 commit comments