These are chat archives for Nethereum/Nethereum

6th
Jul 2018
Juan Blanco
@juanfranblanco
Jul 06 2018 05:28
@TriplejumpGames yes a List<> apologies :)
in case of doubt code generate
@TarrahArshad for mainnet?
Juan Blanco
@juanfranblanco
Jul 06 2018 10:20
@TriplejumpGames (apologies as I was not here to answer :) )
Anthony Leong
@acidfreako
Jul 06 2018 10:21
Don’t be too hard on yourself Juan you are doing great
Juan Blanco
@juanfranblanco
Jul 06 2018 10:21
:D thanks
Top Nguyễn
@topnguyen
Jul 06 2018 17:08
Hi...
I face an issue when decode logs, index out of range :( my event logs (https://rinkeby.etherscan.io/address/0x36dfdec49279ff2aabc551fa2ec7209a03471133#events)
Any idea to resolve this issue
Top Nguyễn
@topnguyen
Jul 06 2018 17:18
var changedDataEvent = contract.GetEvent<MotibikeChangedDataModel>("ChangedData");

var filterInput = changedDataEvent.CreateFilterInput(new BlockParameter(1), BlockParameter.CreateLatest());

var logs = await Eth.Filters.GetLogs.SendRequestAsync(filterInput); // Have 3 logs from: https://rinkeby.etherscan.io/address/0x36dfdec49279ff2aabc551fa2ec7209a03471133#events

var datas = Event.DecodeAllEvents<MotobikeModel>(logs); <== Throw out of range exception
Juan Blanco
@juanfranblanco
Jul 06 2018 20:52
@topnguyen can you post your event in solidity and csharp?
I'm guessing the first is an address and second and int like 300?
Are they mark as indexed?
In c#?