From df976c0ee0c7e85026f92ed30d4a63861f1082a9 Mon Sep 17 00:00:00 2001 From: hirokisan Date: Wed, 28 Feb 2024 10:21:10 +0700 Subject: [PATCH] test(integration): v5 get master deposit address --- integrationtest/v5/asset/asset_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/integrationtest/v5/asset/asset_test.go b/integrationtest/v5/asset/asset_test.go index 1ba6f23..7518a7a 100644 --- a/integrationtest/v5/asset/asset_test.go +++ b/integrationtest/v5/asset/asset_test.go @@ -127,3 +127,18 @@ func TestGetAllCoinsBalance(t *testing.T) { testhelper.UpdateFile(t, goldenFilename, testhelper.ConvertToJSON(res.Result)) } } + +func TestGetMasterDepositAddress(t *testing.T) { + client := bybit.NewTestClient().WithAuthFromEnv() + chainType := "ETH" + res, err := client.V5().Asset().GetMasterDepositAddress(bybit.V5GetMasterDepositAddressParam{ + Coin: bybit.CoinUSDT, + ChainType: &chainType, + }) + require.NoError(t, err) + { + goldenFilename := "./testdata/v5-asset-get-master-deposit-address.json" + testhelper.Compare(t, goldenFilename, testhelper.ConvertToJSON(res.Result)) + testhelper.UpdateFile(t, goldenFilename, testhelper.ConvertToJSON(res.Result)) + } +}