diff --git a/pkg/api/wallet.go b/pkg/api/wallet.go index 32e797f93b3..804d11192d8 100644 --- a/pkg/api/wallet.go +++ b/pkg/api/wallet.go @@ -111,7 +111,7 @@ func (s *Service) walletWithdrawHandler(w http.ResponseWriter, r *http.Request) return } - txHash, err := s.erc20Service.Withdraw(r.Context(), *queries.Address, queries.Amount) + txHash, err := s.erc20Service.Transfer(r.Context(), *queries.Address, queries.Amount) if err != nil { logger.Error(err, "unable to transfer") jsonhttp.InternalServerError(w, "unable to transfer amount")