Skip to content

Commit

Permalink
Fix TestContractAElfModule
Browse files Browse the repository at this point in the history
  • Loading branch information
eanzhao committed Aug 30, 2021
1 parent d706619 commit 4d21e0d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System.Collections.Generic;
using AElf.ContractTestKit;
using AElf.CSharp.CodeOps;
using AElf.Kernel.Blockchain.Application;
using AElf.Kernel.FeeCalculation;
using AElf.Kernel.FeeCalculation.Application;
using AElf.Kernel.FeeCalculation.Infrastructure;
Expand All @@ -9,6 +10,7 @@
using AElf.Kernel.SmartContract.ExecutionPluginForMethodFee;
using AElf.Kernel.SmartContract.ExecutionPluginForResourceFee;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Volo.Abp.Modularity;

namespace AElf.Contract.TestContract
Expand All @@ -20,6 +22,7 @@ public class TestContractAElfModule : ContractTestModule
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<ContractOptions>(o => o.ContractDeploymentAuthorityRequired = false);
context.Services.RemoveAll<IBlockValidationProvider>();
}
}

Expand Down

0 comments on commit 4d21e0d

Please sign in to comment.