From 63998a81c779d3e037c569e3d37303372128fdd8 Mon Sep 17 00:00:00 2001 From: STRRL Date: Tue, 18 Oct 2022 17:20:13 +0800 Subject: [PATCH] fix: typo: WaitingTransferGetApproved -> WaitingTransferGetAccepted Signed-off-by: STRRL --- reddio-csharp/reddio.api/V1/IReddioClient.cs | 4 ++-- reddio-csharp/reddio.api/V1/ReddioClient.cs | 6 +++--- reddio-csharp/reddio.tests.api/V1/ReddioClientTests.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/reddio-csharp/reddio.api/V1/IReddioClient.cs b/reddio-csharp/reddio.api/V1/IReddioClient.cs index 4df0b88..9fa35ad 100644 --- a/reddio-csharp/reddio.api/V1/IReddioClient.cs +++ b/reddio-csharp/reddio.api/V1/IReddioClient.cs @@ -22,9 +22,9 @@ Int64 expirationTimeStamp ); public Task> GetRecord(string starkKey, Int64 sequenceId); - public Task> WaitingTransferGetApproved(string starkKey, Int64 sequenceId); + public Task> WaitingTransferGetAccepted(string starkKey, Int64 sequenceId); - public Task> WaitingTransferGetApproved( + public Task> WaitingTransferGetAccepted( string starkKey, Int64 sequenceId, TimeSpan interval, diff --git a/reddio-csharp/reddio.api/V1/ReddioClient.cs b/reddio-csharp/reddio.api/V1/ReddioClient.cs index 22593f1..770c7b5 100644 --- a/reddio-csharp/reddio.api/V1/ReddioClient.cs +++ b/reddio-csharp/reddio.api/V1/ReddioClient.cs @@ -54,16 +54,16 @@ public async Task> GetRecord(string starkKey, return await this._restClient.GetRecord(new GetRecordMessage(starkKey, sequenceId)); } - public async Task> WaitingTransferGetApproved(string starkKey, + public async Task> 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> WaitingTransferGetApproved(string starkKey, + public async Task> WaitingTransferGetAccepted(string starkKey, long sequenceId, TimeSpan interval, CancellationToken cancellationToken) diff --git a/reddio-csharp/reddio.tests.api/V1/ReddioClientTests.cs b/reddio-csharp/reddio.tests.api/V1/ReddioClientTests.cs index 987b98a..9819485 100644 --- a/reddio-csharp/reddio.tests.api/V1/ReddioClientTests.cs +++ b/reddio-csharp/reddio.tests.api/V1/ReddioClientTests.cs @@ -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);