From 4ea3da45e7f853ef45a5764498213b7e0eb99a05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emil=20Holm=20Gj=C3=B8rup?= Date: Mon, 23 Sep 2024 10:02:14 +0200 Subject: [PATCH] Fix test build issue --- .../Api/GraphQL/Import/AccountImportHandlerTest.cs | 14 ++++++++++---- .../Tests/Api/GraphQL/Import/AccountLookupTest.cs | 7 +++++-- backend/concordium-net-sdk | 2 +- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/backend/Tests/Api/GraphQL/Import/AccountImportHandlerTest.cs b/backend/Tests/Api/GraphQL/Import/AccountImportHandlerTest.cs index 08ad92757..009ea50a4 100644 --- a/backend/Tests/Api/GraphQL/Import/AccountImportHandlerTest.cs +++ b/backend/Tests/Api/GraphQL/Import/AccountImportHandlerTest.cs @@ -78,7 +78,10 @@ public async Task SameBlock_AccountCreation_InwardsTransferTest() AccountAmount: CcdAmount.FromCcd(1), AccountIndex: receiverAccountId, AccountAddress: receiverAccount, - null + null, + Schedule: ReleaseSchedule.Empty(), + Cooldowns: new List(), + AvailableBalance: CcdAmount.FromCcd(1) ) }, Array.Empty()); @@ -143,11 +146,14 @@ public async Task GenesisBlock_AccountCreation_BalanceTest() AccountAmount: CcdAmount.FromCcd(1), AccountIndex: receiverAccountId, AccountAddress: receiverAccount, - null + null, + Schedule: ReleaseSchedule.Empty(), + Cooldowns: new List(), + AvailableBalance: CcdAmount.FromCcd(1) ) }, - Array.Empty()); - + Array.Empty()); + var blockDataPayload = new BlockDataPayloadBuilder() .WithBlockInfo(blockInfo) .WithBlockItemSummaries(new List()) diff --git a/backend/Tests/Api/GraphQL/Import/AccountLookupTest.cs b/backend/Tests/Api/GraphQL/Import/AccountLookupTest.cs index 3bad5d815..33e9346c8 100644 --- a/backend/Tests/Api/GraphQL/Import/AccountLookupTest.cs +++ b/backend/Tests/Api/GraphQL/Import/AccountLookupTest.cs @@ -115,10 +115,13 @@ public async Task GivenNoAccountInCacheOrDatabase_WhenCallingNodeWhichKnowsAccou var clientMock = new Mock(); var accountInfo = new AccountInfo( AccountSequenceNumber.From(1UL), - CcdAmount.Zero, + CcdAmount.Zero, new AccountIndex(accountIndex), AccountAddress.From(uniqueAddress), - null + null, + Schedule: ReleaseSchedule.Empty(), + Cooldowns: new List(), + AvailableBalance: CcdAmount.Zero ); clientMock.Setup(m => m.GetAccountInfoAsync(It.IsAny(), It.IsAny(), It.IsAny())) diff --git a/backend/concordium-net-sdk b/backend/concordium-net-sdk index b8a1eb3f2..34fe6f311 160000 --- a/backend/concordium-net-sdk +++ b/backend/concordium-net-sdk @@ -1 +1 @@ -Subproject commit b8a1eb3f2a8a8bf418442f056d7bdf10b3d70e52 +Subproject commit 34fe6f311899253d2b063c20ec1892b2536d1848