Skip to content

Commit 3362d23

Browse files
author
Alex
committed
dag: properly pass hash option
1 parent 73743d6 commit 3362d23

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dag.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"strings"
99

1010
"github.com/ipfs/go-ipfs-api/options"
11-
"github.com/ipfs/go-ipfs-files"
11+
files "github.com/ipfs/go-ipfs-files"
1212
)
1313

1414
func (s *Shell) DagGet(ref string, out interface{}) error {
@@ -52,6 +52,7 @@ func (s *Shell) DagPutWithOpts(data interface{}, opts ...options.DagPutOption) (
5252
Option("input-enc", cfg.InputEnc).
5353
Option("format", cfg.Kind).
5454
Option("pin", cfg.Pin).
55+
Option("hash", cfg.Hash).
5556
Body(fileReader).
5657
Exec(context.Background(), &out)
5758
}

0 commit comments

Comments
 (0)