OSDN Git Service

try to fix ban peer bug (#273)
[bytom/vapor.git] / api / assets.go
1 package api
2
3 // POST /update-asset-alias
4 func (a *API) updateAssetAlias(updateAlias struct {
5         ID       string `json:"id"`
6         NewAlias string `json:"alias"`
7 }) Response {
8         if err := a.wallet.AssetReg.UpdateAssetAlias(updateAlias.ID, updateAlias.NewAlias); err != nil {
9                 return NewErrorResponse(err)
10         }
11
12         return NewSuccessResponse(nil)
13 }