Skip to content

Commit 09513ed

Browse files
committed
fix: fix CSharp SDK, GetAssetId
Signed-off-by: STRRL <im@strrl.dev>
1 parent a9c5eee commit 09513ed

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

reddio-csharp/reddio.api/V1/Rest/ReddioRestClient.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,8 @@ public async Task<ResponseWrapper<GetAssetIdResponse>> GetAssetId(GetAssetIdMess
6464
{
6565
var endpoint =
6666
$"{_baseEndpoint}/v1/assetid?type={getAssetIdMessage.Type}&contract_address={getAssetIdMessage.ContractAddress}&token_id={getAssetIdMessage.TokenId}";
67-
var request = new HttpRequestMessage(HttpMethod.Get, endpoint);
68-
request.Content = new StringContent("", Encoding.UTF8, "application/json");
6967
var client = HttpClientWithReddioUA();
70-
var response = await client.SendAsync(request);
68+
var response = await client.GetAsync(endpoint);
7169
var result = await ReadAsJsonAsync<ResponseWrapper<GetAssetIdResponse>>(response);
7270
return result!;
7371
}
@@ -89,7 +87,6 @@ public async Task<ResponseWrapper<GetRecordResponse>> GetRecord(GetRecordMessage
8987
$"{_baseEndpoint}/v1/record?stark_key={getRecordMessage.StarkKey}&sequence_id={getRecordMessage.SequenceId}";
9088
var client = HttpClientWithReddioUA();
9189
var response = await client.GetAsync(endpoint);
92-
var body = await response.Content.ReadAsStringAsync();
9390
response.EnsureSuccessStatusCode();
9491
var result = await ReadAsJsonAsync<ResponseWrapper<GetRecordResponse>>(response);
9592
return result!;

0 commit comments

Comments
 (0)