web3.swift icon indicating copy to clipboard operation
web3.swift copied to clipboard

'events' is inaccessible due to 'internal' protection level

Open ParhamHatan opened this issue 2 years ago • 0 comments

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

ParhamHatan avatar Aug 05 '22 09:08 ParhamHatan