Skip to content

Commit

Permalink
fix: transfer
Browse files Browse the repository at this point in the history
  • Loading branch information
notanatol committed Mar 11, 2024
1 parent 824bb25 commit e98efa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/api/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e98efa8

Please sign in to comment.