Skip to content

Commit

Permalink
ref: refactor ipfs example with new api
Browse files Browse the repository at this point in the history
  • Loading branch information
HannesKimara committed Oct 19, 2021
1 parent 6d5e4f6 commit 89d0054
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions example/ipfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ var (

func main() {
flag.Parse()
ipfs, err := blockfrost.NewIPFSClient(blockfrost.IPFSClientOptions{})
if err != nil {
log.Fatal(err)
}
ipfs := blockfrost.NewIPFSClient(blockfrost.IPFSClientOptions{})

ipo, err := ipfs.Add(context.TODO(), *fp)
if err != nil {
Expand Down

0 comments on commit 89d0054

Please sign in to comment.