From ee9fb4fae28869afe5d602b10796f05283af2b30 Mon Sep 17 00:00:00 2001 From: Stanislav Vysotskyi <66203238+ArdenHide@users.noreply.github.com> Date: Thu, 10 Aug 2023 14:33:38 +0300 Subject: [PATCH] add default ctor (#131) --- src/EthSmartContractIO/ContractIO/ContractIO.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; }