Skip to content

Commit

Permalink
Change method name to TransactionResultWithBVP
Browse files Browse the repository at this point in the history
  • Loading branch information
chopin-fan committed Jan 2, 2025
1 parent 7b1eb9b commit 99e57c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface ITransactionResultAppService
{
Task<TransactionResultDto> GetTransactionResultAsync(string transactionId);

Task<TransactionResultDto> GetTransactionResultV2Async(string transactionId);
Task<TransactionResultDto> GetTransactionResultWithBVPAsync(string transactionId);

Task<List<TransactionResultDto>> GetTransactionResultsAsync(string blockHash, int offset = 0,
int limit = 10);
Expand Down Expand Up @@ -127,7 +127,7 @@ await _transactionResultProxyService.InvalidTransactionResultService.GetInvalidT
/// </summary>
/// <param name="transactionId">transaction id</param>
/// <returns></returns>
public async Task<TransactionResultDto> GetTransactionResultV2Async(string transactionId)
public async Task<TransactionResultDto> GetTransactionResultWithBVPAsync(string transactionId)
{
Hash transactionIdHash;
try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ public async Task Get_TransactionResult_Success_Test()
}

[Fact]
public async Task Get_TransactionResultV2_Expired_Test()
public async Task Get_TransactionResultWithBVP_Expired_Test()
{
// Generate a transaction
var transaction = await _osTestHelper.GenerateTransferTransaction();
Expand All @@ -701,7 +701,7 @@ public async Task Get_TransactionResultV2_Expired_Test()

// Check transaction status
var response = await GetResponseAsObjectAsync<TransactionResultDto>(
$"/api/blockChain/transactionResultV2?transactionId={transactionHex}");
$"/api/blockChain/transactionResultWithBVP?transactionId={transactionHex}");
response.StatusWithBVP.ShouldBe(TransactionResultStatus.Expired.ToString().ToUpper());
}

Expand Down

0 comments on commit 99e57c9

Please sign in to comment.