Skip to content

Commit c0bf0d3

Browse files
committed
Fix the ipfsHttpClient import error
1 parent 63216fc commit c0bf0d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cli/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as dotenv from 'dotenv'
22

33
import { utils, providers, Wallet, Overrides } from 'ethers'
4-
import ipfsHttpClient from 'ipfs-http-client'
4+
import { ipfsHttpClient } from 'ipfs-http-client'
55
import * as bs58 from 'bs58'
66

77
dotenv.config()
@@ -14,7 +14,7 @@ export const defaultOverrides = (): Overrides => {
1414
}
1515

1616
export class IPFS {
17-
static createIpfsClient(node: string): ipfsHttpClient {
17+
static createIpfsClient(node: string): typeof ipfsHttpClient {
1818
let url: URL
1919
try {
2020
url = new URL(node)

0 commit comments

Comments
 (0)