Fixed subnet and coords replacing bug RIVM-34

This commit is contained in:
vadym 2022-12-22 15:09:12 +02:00
parent 9750f368ff
commit c65717df6b

View file

@ -140,8 +140,8 @@ func (a *RestServer) apiSelfHandler(w http.ResponseWriter, r *http.Request) {
"key": hex.EncodeToString(self.Key[:]),
"private_key": hex.EncodeToString(self.PrivateKey[:]),
"address": a.Core.Address().String(),
"coords": snet.String(),
"subnet": self.Coords,
"coords": self.Coords,
"subnet": snet.String(),
}
b, err := json.Marshal(result)
if err != nil {