From 8a220a877daff4bb0b6ea52c3fa87bb11845ccd1 Mon Sep 17 00:00:00 2001 From: Beadko Date: Wed, 20 Dec 2023 13:14:59 +0700 Subject: [PATCH] Bitstamp: Update WithdrawFiat and WithdrawFiatFundsToInternationalBank --- exchanges/bitstamp/bitstamp_test.go | 4 ++++ exchanges/bitstamp/bitstamp_wrapper.go | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/exchanges/bitstamp/bitstamp_test.go b/exchanges/bitstamp/bitstamp_test.go index f7a0f0ce2b4..1fbbebe5d9b 100644 --- a/exchanges/bitstamp/bitstamp_test.go +++ b/exchanges/bitstamp/bitstamp_test.go @@ -603,6 +603,8 @@ func TestWithdrawFiat(t *testing.T) { } var withdrawFiatRequest = withdraw.Request{ + Type: withdraw.Fiat, + Exchange: b.Name, Fiat: withdraw.FiatRequest{ Bank: banking.Account{ SupportedExchanges: b.Name, @@ -644,6 +646,8 @@ func TestWithdrawInternationalBank(t *testing.T) { } var withdrawFiatRequest = withdraw.Request{ + Type: withdraw.Fiat, + Exchange: b.Name, Fiat: withdraw.FiatRequest{ Bank: banking.Account{ SupportedExchanges: b.Name, diff --git a/exchanges/bitstamp/bitstamp_wrapper.go b/exchanges/bitstamp/bitstamp_wrapper.go index 554a53d1594..4f6fe92a444 100644 --- a/exchanges/bitstamp/bitstamp_wrapper.go +++ b/exchanges/bitstamp/bitstamp_wrapper.go @@ -740,8 +740,6 @@ func (b *Bitstamp) WithdrawCryptocurrencyFunds(ctx context.Context, withdrawRequ // WithdrawFiatFunds returns a withdrawal ID when a // withdrawal is submitted func (b *Bitstamp) WithdrawFiatFunds(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) { - withdrawRequest.Exchange = b.Name - withdrawRequest.Type = withdraw.Fiat if err := withdrawRequest.Validate(); err != nil { return nil, err } @@ -769,8 +767,6 @@ func (b *Bitstamp) WithdrawFiatFunds(ctx context.Context, withdrawRequest *withd // WithdrawFiatFundsToInternationalBank returns a withdrawal ID when a // withdrawal is submitted func (b *Bitstamp) WithdrawFiatFundsToInternationalBank(ctx context.Context, withdrawRequest *withdraw.Request) (*withdraw.ExchangeResponse, error) { - withdrawRequest.Exchange = b.Name - withdrawRequest.Type = withdraw.Fiat if err := withdrawRequest.Validate(); err != nil { return nil, err }