Skip to content

Commit 4bd4381

Browse files
authored
Merge pull request #402 from klim0v/v1.2
fixes
2 parents 3bc1fcb + ca7d011 commit 4bd4381

6 files changed

Lines changed: 7 additions & 7 deletions

File tree

api/v2/service/coin_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func (s *Service) CoinInfoById(ctx context.Context, req *pb.CoinIdRequest) (*pb.
6565

6666
coin := cState.Coins().GetCoin(types.CoinID(req.Id))
6767
if coin == nil {
68-
return new(pb.CoinInfoResponse), s.createError(status.New(codes.NotFound, "Coin not found"), transaction.EncodeError(transaction.EncodeError(code.NewCoinNotExists("", strconv.Itoa(int(req.Id))))))
68+
return new(pb.CoinInfoResponse), s.createError(status.New(codes.NotFound, "Coin not found"), transaction.EncodeError(code.NewCoinNotExists("", strconv.Itoa(int(req.Id)))))
6969
}
7070

7171
if timeoutStatus := s.checkTimeout(ctx); timeoutStatus != nil {

api/v2/service/estimate_coin_sell_all.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func (s *Service) EstimateCoinSellAll(ctx context.Context, req *pb.EstimateCoinS
4444
} else {
4545
coinToBuy = types.CoinID(req.GetCoinIdToBuy())
4646
if !cState.Coins().Exists(coinToBuy) {
47-
return new(pb.EstimateCoinSellAllResponse), s.createError(status.New(codes.NotFound, "Coin to buy not exists"), transaction.EncodeError(transaction.EncodeError(code.NewCoinNotExists("", coinToBuy.String()))))
47+
return new(pb.EstimateCoinSellAllResponse), s.createError(status.New(codes.NotFound, "Coin to buy not exists"), transaction.EncodeError(code.NewCoinNotExists("", coinToBuy.String())))
4848
}
4949
}
5050

api/v2/service/frozen.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func (s *Service) Frozen(ctx context.Context, req *pb.FrozenRequest) (*pb.Frozen
3030
coinID := types.CoinID(req.CoinId.GetValue())
3131
reqCoin = cState.Coins().GetCoin(coinID)
3232
if reqCoin == nil {
33-
return new(pb.FrozenResponse), s.createError(status.New(codes.NotFound, "Coin not found"), transaction.EncodeError(transaction.EncodeError(code.NewCoinNotExists("", coinID.String()))))
33+
return new(pb.FrozenResponse), s.createError(status.New(codes.NotFound, "Coin not found"), transaction.EncodeError(code.NewCoinNotExists("", coinID.String())))
3434
}
3535
}
3636
var frozen []*pb.FrozenResponse_Frozen

core/transaction/unbond.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (data UnbondData) BasicCheck(tx *Transaction, context *state.CheckState) *R
6666
return &Response{
6767
Code: code.StakeNotFound,
6868
Log: fmt.Sprintf("Stake of current user not found"),
69-
Info: EncodeError(EncodeError(code.NewStakeNotFound(data.PubKey.String(), sender.String(), data.Coin.String(), context.Coins().GetCoin(data.Coin).GetFullSymbol()))),
69+
Info: EncodeError(code.NewStakeNotFound(data.PubKey.String(), sender.String(), data.Coin.String(), context.Coins().GetCoin(data.Coin).GetFullSymbol())),
7070
}
7171
}
7272

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/MinterTeam/minter-go-node
33
go 1.15
44

55
require (
6-
github.com/MinterTeam/node-grpc-gateway v1.1.3-0.20200920180544-2bc88646bf02
6+
github.com/MinterTeam/node-grpc-gateway v1.1.3-0.20200921073010-0e0331cde460
77
github.com/btcsuite/btcd v0.20.1-beta
88
github.com/c-bata/go-prompt v0.2.3
99
github.com/go-kit/kit v0.10.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym
77
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d h1:nalkkPQcITbvhmL4+C4cKA87NW0tfm3Kl9VXRoPywFg=
88
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d/go.mod h1:URdX5+vg25ts3aCh8H5IFZybJYKWhJHYMTnf+ULtoC4=
99
github.com/Knetic/govaluate v3.0.1-0.20171022003610-9aa49832a739+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
10-
github.com/MinterTeam/node-grpc-gateway v1.1.3-0.20200920180544-2bc88646bf02 h1:HJBzwDqs7xSCYRkJ6ehUJ3+ScLzFY2gg8mo3aRptsPs=
11-
github.com/MinterTeam/node-grpc-gateway v1.1.3-0.20200920180544-2bc88646bf02/go.mod h1:LZ+Y8IYfSBx0IQZY+a9pHLjztMwmlaCQX2ncTejoE2o=
10+
github.com/MinterTeam/node-grpc-gateway v1.1.3-0.20200921073010-0e0331cde460 h1:joYzlUOfkSr2j+jmkMxXqLF5HguzwlYx6lfJmE6/brs=
11+
github.com/MinterTeam/node-grpc-gateway v1.1.3-0.20200921073010-0e0331cde460/go.mod h1:LZ+Y8IYfSBx0IQZY+a9pHLjztMwmlaCQX2ncTejoE2o=
1212
github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
1313
github.com/Shopify/sarama v1.19.0/go.mod h1:FVkBWblsNy7DGZRfXLU0O9RCGt5g3g3yEuWXgklEdEo=
1414
github.com/Shopify/toxiproxy v2.1.4+incompatible/go.mod h1:OXgGpZ6Cli1/URJOF1DMxUHB2q5Ap20/P/eIdh4G0pI=

0 commit comments

Comments
 (0)