Skip to content

Commit

Permalink
test(integration): v5 get master deposit address
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokisan committed Feb 28, 2024
1 parent 2c8859e commit df976c0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions integrationtest/v5/asset/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

0 comments on commit df976c0

Please sign in to comment.