Commit 0709621a authored by Matt Bell's avatar Matt Bell

core/commands2: Updated id command for new argument API

parent 8968b98c
......@@ -52,10 +52,7 @@ if no peer is specified, prints out local peers info.
return printPeer(node.Identity)
}
pid, ok := req.Arguments()[0].(string)
if !ok {
return nil, cmds.ClientError("Improperly formatted peer id")
}
pid := req.Arguments()[0]
id := peer.ID(b58.Decode(pid))
if len(id) == 0 {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment