Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Commit

Permalink
fix: always return upgradeable instead of basic dir (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
schomatis authored May 19, 2021
1 parent 4a10174 commit 9dd1330
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/directory.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func NewDirectoryFromNode(dserv ipld.DAGService, node ipld.Node) (Directory, err

switch fsNode.Type() {
case format.TDirectory:
return newBasicDirectoryFromNode(dserv, protoBufNode.Copy().(*mdag.ProtoNode)), nil
return &UpgradeableDirectory{newBasicDirectoryFromNode(dserv, protoBufNode.Copy().(*mdag.ProtoNode))}, nil
case format.THAMTShard:
shard, err := hamt.NewHamtFromDag(dserv, node)
if err != nil {
Expand Down

0 comments on commit 9dd1330

Please sign in to comment.