public RepoAccessorService(IBlockchainAccessor blockchainAccessor) { _blockchainAccessor = blockchainAccessor ?? throw new ArgumentNullException(nameof(blockchainAccessor)); }
public BlockchainListenerService(CoreConfiguration config, IBlockchainAccessor blockchainAccessor, IWeb3 web3) { _config = config ?? throw new ArgumentNullException(nameof(config)); _blockchainAccessor = blockchainAccessor ?? throw new ArgumentNullException(nameof(blockchainAccessor)); _web3 = web3 ?? throw new ArgumentNullException(nameof(web3)); }