From 2c4dafdc0b7a4836c8e9271180ca5e9ac9635473 Mon Sep 17 00:00:00 2001 From: klim0v Date: Tue, 22 Sep 2020 19:36:47 +0300 Subject: [PATCH] fix coin info --- api/v2/service/coin_info.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v2/service/coin_info.go b/api/v2/service/coin_info.go index 4bca3f252..c27158c55 100644 --- a/api/v2/service/coin_info.go +++ b/api/v2/service/coin_info.go @@ -44,7 +44,7 @@ func (s *Service) CoinInfo(ctx context.Context, req *pb.CoinInfoRequest) (*pb.Co return &pb.CoinInfoResponse{ Id: coin.ID().String(), Name: coin.Name(), - Symbol: coin.Symbol().String(), + Symbol: coin.GetFullSymbol(), Volume: coin.Volume().String(), Crr: fmt.Sprintf("%d", coin.Crr()), ReserveBalance: coin.Reserve().String(), @@ -53,7 +53,7 @@ func (s *Service) CoinInfo(ctx context.Context, req *pb.CoinInfoRequest) (*pb.Co }, nil } -// Returns information about coin ID. +// CoinInfoById returns information about coin ID. func (s *Service) CoinInfoById(ctx context.Context, req *pb.CoinIdRequest) (*pb.CoinInfoResponse, error) { cState, err := s.blockchain.GetStateForHeight(req.Height) if err != nil { @@ -83,7 +83,7 @@ func (s *Service) CoinInfoById(ctx context.Context, req *pb.CoinIdRequest) (*pb. return &pb.CoinInfoResponse{ Id: coin.ID().String(), Name: coin.Name(), - Symbol: coin.Symbol().String(), + Symbol: coin.GetFullSymbol(), Volume: coin.Volume().String(), Crr: fmt.Sprintf("%d", coin.Crr()), ReserveBalance: coin.Reserve().String(),