Skip to content

Commit

Permalink
Contract handlers update
Browse files Browse the repository at this point in the history
  • Loading branch information
juanfranblanco committed Dec 29, 2024
1 parent 7019a21 commit 66da017
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Nethereum.Contracts/ContractHandlers/ContractHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Nethereum.Contracts.ContractHandlers
{
public class ContractHandler : IContractHandler
{
public ContractHandler(string contractAddress, EthApiContractService ethApiContractService,
public ContractHandler(string contractAddress, IEthApiContractService ethApiContractService,
string addressFrom = null)
{
ContractAddress = contractAddress;
Expand All @@ -22,7 +22,7 @@ public ContractHandler(string contractAddress, EthApiContractService ethApiContr
public string AddressFrom { get; protected set; }

public string ContractAddress { get; }
public EthApiContractService EthApiContractService { get; }
public IEthApiContractService EthApiContractService { get; protected set; }

public Event<TEventType> GetEvent<TEventType>() where TEventType : IEventDTO, new()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ namespace Nethereum.Contracts.ContractHandlers
public interface IContractHandler
{
string ContractAddress { get; }
EthApiContractService EthApiContractService { get; }
IEthApiContractService EthApiContractService { get; }

#if !DOTNET35
Task<HexBigInteger> EstimateGasAsync<TEthereumContractFunctionMessage>(TEthereumContractFunctionMessage transactionMessage = null) where TEthereumContractFunctionMessage : FunctionMessage, new();
Expand Down

0 comments on commit 66da017

Please sign in to comment.