These are chat archives for Nethereum/Nethereum

8th
Aug 2018
junbest
@junbest
Aug 08 2018 01:21
Hello can you update the sample source code windows to 3.0.0rc1? struggling when updating the old sample to 3.0.0.0rc1
junbest
@junbest
Aug 08 2018 07:23
Sample of loading the keystore file?
using 3.0.0.rc1 please
Andres G. Aragoneses
@knocte
Aug 08 2018 08:13
@juanfranblanco hey man, got several problems when trying to upgrade from 2.5.2CI to 3.0.0-rc1; I think I've solved all of them except this last one: ContractHandler::EstimateGasAsync used to receive an argument and now it receives nothing; how can I pass the TransferFunction to it then?
actually, scratch that
Andres G. Aragoneses
@knocte
Aug 08 2018 08:19
nevermind , I think I solved it
Juan Blanco
@juanfranblanco
Aug 08 2018 12:22
ah cool :)
Mainly now you can not pass no parameters (if not needed) to avoid typing
also for that reason parameters have change order, so the contract address is first
Juan Blanco
@juanfranblanco
Aug 08 2018 13:07
@junbest yes of course, not today but it will be updated
userid2018
@userid2018
Aug 08 2018 20:03

I am getting exception while reading the events from the block. "System.ArgumentException: Neth_Eventing.TransferredEvent is not a valid Event Type" is the exception i am getting. Please guide.

TransferredEvent Defination in c#
[FunctionOutput]
public class TransferredEvent : IEventDTO
{
[Parameter("string", "trackingNumber", 1, false)]
public string TrackingNumber { get; set; }
}

Contract in Solidity

pragma solidity ^0.4.18;

contract TrackerContract {
string trackingID;
event TrackingRequest(string trackingNumber);
function setTrackingNumber(string _trackNumber) public {
trackingID = _trackNumber;
emit TrackingRequest(_trackNumber);
}
}

This is the address on ropsten : 0x64ce936821c78f0b1930bac300c6138150d0d175

Enigmatic
@EnigmaticUnreal_twitter
Aug 08 2018 20:05
Are you using the latest version? I think there are some changes.
If I recall it now uses the Event() attribute instead.
Let me double check...
userid2018
@userid2018
Aug 08 2018 20:06
3.0.0.-rc1
Enigmatic
@EnigmaticUnreal_twitter
Aug 08 2018 20:11
userid2018
@userid2018
Aug 08 2018 20:13
This looks to be related to ABI but the error i am getting is regrading the EvnetDTO
Enigmatic
@EnigmaticUnreal_twitter
Aug 08 2018 20:19

Ah. Because I was going through the unit tests, and noticed this: https://github.com/Nethereum/Nethereum/blob/master/src/Nethereum.Generators.UnitTests/Expectations/Content/CSharp/EventDTO.01.csharp.txt

So I was thinking the latest no longer use FunctionOutput but distinguishes it with Event() attribute.