Skip to content

Commit

Permalink
fix: typo: WaitingTransferGetApproved -> WaitingTransferGetAccepted
Browse files Browse the repository at this point in the history
Signed-off-by: STRRL <im@strrl.dev>
  • Loading branch information
STRRL committed Oct 18, 2022
1 parent 8159279 commit 63998a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions reddio-csharp/reddio.api/V1/IReddioClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Int64 expirationTimeStamp
);

public Task<ResponseWrapper<GetRecordResponse>> GetRecord(string starkKey, Int64 sequenceId);
public Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetApproved(string starkKey, Int64 sequenceId);
public Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetAccepted(string starkKey, Int64 sequenceId);

public Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetApproved(
public Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetAccepted(
string starkKey,
Int64 sequenceId,
TimeSpan interval,
Expand Down
6 changes: 3 additions & 3 deletions reddio-csharp/reddio.api/V1/ReddioClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,16 @@ public async Task<ResponseWrapper<GetRecordResponse>> GetRecord(string starkKey,
return await this._restClient.GetRecord(new GetRecordMessage(starkKey, sequenceId));
}

public async Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetApproved(string starkKey,
public async Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetAccepted(string starkKey,
long sequenceId)
{
var interval = TimeSpan.FromSeconds(5);
var timeout = TimeSpan.FromMinutes(1);
CancellationTokenSource source = new CancellationTokenSource(timeout);
return await WaitingTransferGetApproved(starkKey, sequenceId, interval, source.Token);
return await WaitingTransferGetAccepted(starkKey, sequenceId, interval, source.Token);
}

public async Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetApproved(string starkKey,
public async Task<ResponseWrapper<GetRecordResponse>> WaitingTransferGetAccepted(string starkKey,
long sequenceId,
TimeSpan interval,
CancellationToken cancellationToken)
Expand Down
4 changes: 2 additions & 2 deletions reddio-csharp/reddio.tests.api/V1/ReddioClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ public async void TestTransfer()
}

[Fact]
public async void TestWaitingRecordGetApproved()
public async void TestWaitingRecordGetAccepted()
{
var client = ReddioClient.Testnet();
var result =
await client.WaitingTransferGetApproved("0x6736f7449da3bf44bf0f7bdd6463818e1ef272641d43021e8bca17b32ec2df0",
await client.WaitingTransferGetAccepted("0x6736f7449da3bf44bf0f7bdd6463818e1ef272641d43021e8bca17b32ec2df0",
300523);
Assert.Equal("OK", result.Status);
Assert.Single(result.Data);
Expand Down

0 comments on commit 63998a8

Please sign in to comment.