web3.swift
web3.swift copied to clipboard
'events' is inaccessible due to 'internal' protection level
getEvents value type is Events and when I want to access it's properties I get 'events' is inaccessible due to 'internal' protection level
let logs = try await client.getEvents(addresses: [EthereumAddress(chain.marketplaceAddress)],
orTopics: MarketplaceEvents.topics,
fromBlock: EthereumBlock.Number(fromBlockNumber),
toBlock: EthereumBlock.Number(toBlockNumber),
eventTypes: MarketplaceEvents.types)
logs.events // <- Error line
using latest develop branch