diff --git a/src/EthSmartContractIO/ContractIO/ContractIO.cs b/src/EthSmartContractIO/ContractIO/ContractIO.cs index 735db34..d77bde3 100644 --- a/src/EthSmartContractIO/ContractIO/ContractIO.cs +++ b/src/EthSmartContractIO/ContractIO/ContractIO.cs @@ -10,11 +10,18 @@ public class ContractIO { private readonly IServiceProvider? serviceProvider; + /// + /// Initializes a new instance of the class. + /// + public ContractIO() + : this(null) + { } + /// /// Initializes a new instance of the class. /// /// The service provider to use. If null, a new one will be created. Used only for write request. - public ContractIO(IServiceProvider? serviceProvider = null) + public ContractIO(IServiceProvider? serviceProvider) { this.serviceProvider = serviceProvider; }