Skip to content

Commit

Permalink
fix coin info
Browse files Browse the repository at this point in the history
  • Loading branch information
klim0v committed Sep 22, 2020
1 parent deadb19 commit 2c4dafd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/v2/service/coin_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand All @@ -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 {
Expand Down Expand Up @@ -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(),
Expand Down

0 comments on commit 2c4dafd

Please sign in to comment.