diff --git a/options/dag.go b/options/dag.go index 6181f5a06..3db2890cc 100644 --- a/options/dag.go +++ b/options/dag.go @@ -14,8 +14,8 @@ type DagPutOption func(opts *DagPutSettings) error // DagPutOptions applies the given options to a DagPutSettings instance. func DagPutOptions(opts ...DagPutOption) (*DagPutSettings, error) { options := &DagPutSettings{ - InputEnc: "json", - Kind: "cbor", + InputEnc: "dag-json", + Kind: "dag-cbor", Pin: "false", Hash: "sha2-256", } diff --git a/shell_test.go b/shell_test.go index b34eb5b1a..91728bb2c 100644 --- a/shell_test.go +++ b/shell_test.go @@ -421,7 +421,7 @@ func TestDagPut(t *testing.T) { is := is.New(t) s := NewShell(shellUrl) - c, err := s.DagPut(`{"x": "abc","y":"def"}`, "json", "cbor") + c, err := s.DagPut(`{"x": "abc","y":"def"}`, "dag-json", "dag-cbor") is.Nil(err) is.Equal(c, "bafyreidrm3r2k6vlxqp2fk47sboeycf7apddib47w7cyagrajtpaxxl2pi") }