These are chat archives for Nethereum/Nethereum

7th
May 2018
Juan Blanco
@juanfranblanco
May 07 2018 05:29
@chukwuemekanweke yes, also you can dot that with Nethereum already
as it uses Nbitcoin already in the background, just pass the words list
(and a password..)
extra security
@EnigmaticUnreal_twitter please fire.. all feedback is great
@snowycrypto_twitter you need a plain console application targeting net461
Juan Blanco
@juanfranblanco
May 07 2018 05:34
not the netcoreapp
Enigmatic
@EnigmaticUnreal_twitter
May 07 2018 06:01
1.PNG
2.PNG
3.PNG
4.PNG
@snowycrypto_twitter - Screenies for you. :) I took HdWallet off nuget package manager targeting .net461 which will bring the rest of the dependencies along as well.
JEN
@chukwuemekanweke
May 07 2018 08:23
@EnigmaticUnreal_twitter alright thanks
reinarukami
@reinarukami
May 07 2018 08:43
image.png

Good Day guys , Ummm Can you help me.

I don't know why but the output in this function is null .

This is the DTO class
image.png
image.png
the blue background is the contract
reinarukami
@reinarukami
May 07 2018 09:14
I successfully transact in the geth using nethereum but i have a problem in function in returning multiple values
junocaj
@junocaj
May 07 2018 09:21
hello everyone, i am totally new to Nethereum, may I know how could I get connected to ETH mainnet and listen to the events, syncing things up? i dont need to put transaction to the mainnet
Juan Blanco
@juanfranblanco
May 07 2018 09:24
@reinarukami change that to a BigInteger
instead of a string
public BigInteger Id {get; set;}
@junocaj check the Nethereum.BlockchainStorage
that can give you an idea
reinarukami
@reinarukami
May 07 2018 09:34
@juanfranblanco Thank you for the answer .
I have tried it changing to BigInteger and integer and it is still not working.
I will try to find the problem
Thank you for the answer .
Juan Blanco
@juanfranblanco
May 07 2018 09:35
code generate it using vscode
that will be the simplest thing
if you copy and paste the solidity ill do it in a second
(NOTE to self release an online version)
Juan Blanco
@juanfranblanco
May 07 2018 09:41
Nethereum/Nethereum#335
jandroalvarez
@jandroalvarez
May 07 2018 09:44
hi!
@juanfranblanco is it possible to filter an event using an indexed parameter but not giving some previous indexed parameters?
i mean
if an event has 3 indexed parameters, i'd like to filter by the third one without providing the first
if tried the following way and i didn't succeed
var contentFilterId2 = await pushed.CreateFilterAsync(null, null, third, BlockParameter.CreateEarliest(), BlockParameter.CreateLatest());
it's related to the geth issue: ethereum/go-ethereum#16678
i'd like to ignore first and second and just providing fifth
Juan Blanco
@juanfranblanco
May 07 2018 09:50
well if you have the structure as before
it won't work
jandroalvarez
@jandroalvarez
May 07 2018 09:50
yes it is
i ask you bc we are doing that way from javascript
filtering the events by the fifth parameter
without providing the previous ones
Juan Blanco
@juanfranblanco
May 07 2018 09:51
sure you can do that with Nethereum
and you say it works in Javascript?
jandroalvarez
@jandroalvarez
May 07 2018 09:51
yes it does
only fifth is provided
Juan Blanco
@juanfranblanco
May 07 2018 09:51
interesting
using non fixed
attributes
well ill check it tomorrow..
jandroalvarez
@jandroalvarez
May 07 2018 09:52
contract.Pushed(
        {fifth: r},
        {fromBlock: 0, toBlock: 'latest'}
      )
ok!
@jandroalvarez check the format
Ok I'm off now as it is bank holiday :)
Enigmatic
@EnigmaticUnreal_twitter
May 07 2018 15:51

@reinarukami - Sorry, seen your code earlier but just only had the time to get online and respond. Have you sorted out your problem?

I was looking at and the contract looks a little strange - mapfiles is defined to be a mapping of address > Files[], however on GetFiles it is attempting to retrieve a mapping of a mapping.

You might be able to solve your problem if you do something like mapping(address => mapping(uint => File[])) mapfiles; which refers mapfiles as a mapping to an address that allows you to load File[] based on an identifier.

Let me test up something real quick.
Enigmatic
@EnigmaticUnreal_twitter
May 07 2018 16:06
image.png
image.png
@reinarukami - You still have to check the DTOs to make sure the types are compatible, could you try this piece of Solidity code and see if Nethereum returns anything? I could get results from truffle (when I tested your code I would get an error instead).