type conversions

pull/803/head
ak 6 years ago
parent 690e47f664
commit 78e2bdd05d
  1. 4
      api/service/restclientsupport/service.go

@ -256,7 +256,7 @@ func (s *Service) Play(w http.ResponseWriter, r *http.Request) {
return
}
if err := s.CreateTransactionForPlayMethod(key, amount); err != nil {
if err := s.CreateTransactionForPlayMethod(key, int(amount); err != nil {
utils.GetLogInstance().Error("puzzle-play, error", err)
json.NewEncoder(w).Encode(res)
return
@ -284,7 +284,7 @@ func (s *Service) Payout(w http.ResponseWriter, r *http.Request) {
return
}
if err = s.CreateTransactionForPayoutMethod(key, level, sequence); err != nil {
if err = s.CreateTransactionForPayoutMethod(key, int(level), sequence); err != nil {
utils.GetLogInstance().Error("error", err)
json.NewEncoder(w).Encode(res)
return

Loading…
Cancel
Save