From e98efa8d7f05c87069214f48c2bc8f8577a1e8e2 Mon Sep 17 00:00:00 2001 From: notanatol Date: Mon, 11 Mar 2024 17:08:28 -0600 Subject: [PATCH] fix: transfer --- pkg/api/wallet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")