These are chat archives for Nethereum/Nethereum

29th
Apr 2018
kianmehr21
@kianmehr21
Apr 29 2018 07:24
hi I correct my code... but logs.Count still 0
           var transferEvent = swecService.GetTransferEvent();
            var filterInput =  await transferEvent.CreateFilterAsync("0x1dc1579cf974EF4DFF28f67732Ff4607E3C1C033");
            TransactionReceipt res = await swecService.TransferAndWaitForReceiptAsync(tf);
            var logs = await transferEvent.GetFilterChanges<TransferEvent>(filterInput);
kianmehr21
@kianmehr21
Apr 29 2018 07:32

Event Declaration

event Transfer(address indexed _from, address _to, uint256 _value);

emit Event

function _transfer(address _from, address _to, uint _value) internal {
        require(_to != 0x0);
        require(balances[_from] >= _value);
        require(balances[_to] + _value >= balances[_to]);
        balances[_from] -= _value;
        balances[_to] += _value;
        emit Transfer(_from, _to, _value);
    }

my dto class

public class TransferEvent
    {
        [Parameter("address", "_from", 1, true)]
        public string AddressFrom { get; set; }

        [Parameter("address", "_to", 2, false)]
        public string AddressTo { get; set; }

        [Parameter("uint256", "_value", 3, false)]
        public BigInteger Value { get; set; }
    }
ISGroup
@isgroupsrl_twitter
Apr 29 2018 09:20
@chukwuemekanweke do you think that batching is an intelligent thing to do or it is better, from your experience, to simply send each transaction on it's own?