File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
test/AElf.Contracts.Election.Tests/Full Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -383,11 +383,11 @@ public async Task CheckTreasuryProfitsDistribution_Test()
383383 } ) ) . Balance ;
384384
385385 var profitTester = GetProfitContractTester ( VoterKeyPairs [ 0 ] ) ;
386- var profitAmount = ( await profitTester . GetProfitAmount . CallAsync ( new GetProfitAmountInput
386+ var profitAmount = ( await profitTester . GetAllProfitAmount . CallAsync ( new GetAllProfitAmountInput
387387 {
388388 SchemeId = ProfitItemsIds [ ProfitType . CitizenWelfare ] ,
389389 Symbol = EconomicContractsTestConstants . NativeTokenSymbol
390- } ) ) . Value ;
390+ } ) ) . OneTimeClaimableProfitAmount ;
391391 profitAmount . ShouldBeGreaterThan ( 0 ) ;
392392
393393 var profitResult = await profitTester . ClaimProfits . SendAsync ( new ClaimProfitsInput
@@ -636,11 +636,11 @@ private async Task<long> GetProfitAmount(ProfitType type)
636636 break ;
637637 }
638638
639- return ( await stub . GetProfitAmount . CallAsync ( new GetProfitAmountInput
639+ return ( await stub . GetAllProfitAmount . CallAsync ( new GetAllProfitAmountInput
640640 {
641641 SchemeId = ProfitItemsIds [ type ] ,
642642 Symbol = EconomicContractsTestConstants . NativeTokenSymbol
643- } ) ) . Value ;
643+ } ) ) . OneTimeClaimableProfitAmount ;
644644 }
645645
646646 private async Task < long > GetReleasedAmount ( )
You can’t perform that action at this time.
0 commit comments