mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-19 16:06:45 +08:00
clean deprecated Key.Pretty()
License: MIT Signed-off-by: Michael Muré <batolettre@gmail.com>
This commit is contained in:
@ -323,7 +323,7 @@ func (adder *Adder) addNode(node *dag.Node, path string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
path = key.Pretty()
|
||||
path = key.B58String()
|
||||
}
|
||||
|
||||
dir := gopath.Dir(path)
|
||||
@ -479,7 +479,7 @@ func getOutput(dagnode *dag.Node) (*Object, error) {
|
||||
}
|
||||
|
||||
output := &Object{
|
||||
Hash: key.Pretty(),
|
||||
Hash: key.B58String(),
|
||||
Links: make([]Link, len(dagnode.Links)),
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user