These are chat archives for Nethereum/Nethereum

26th
Apr 2018
Vahid1Ali
@Vahid1Ali
Apr 26 2018 06:11
Hello @/all, Is there any ethereum mining library/framework available in c#?
Khojiakbar Muminov
@khmuminov
Apr 26 2018 06:38
Hello!
In web version of project is used web3.eth.personal.sign(dataToSign, account_address, password [, callback]) function to sign data.
I need to do same sign data from mobile app, I have private key of the "account_address". What function should I use?
Khojiakbar Muminov
@khmuminov
Apr 26 2018 06:56
@juanfranblanco How can I do this?
Juan Blanco
@juanfranblanco
Apr 26 2018 08:23
@Dodda there are many blockchain specefic products in the AppStore
@khmuminov you can sign anything with your private key
Nethereum/Nethereum.Workbooks#9
Khojiakbar Muminov
@khmuminov
Apr 26 2018 10:10
@juanfranblanco thank you! But the obtained results from web3.eth.personal.sign and the signer.EncodeUTF8AndSign are different at the same dataToSign(( is it possible get exactly similar signature?
Salazar, F. 🎖
@_Salazar_F_twitter
Apr 26 2018 11:40
Is it possible to know the 12 words of mnemonic with the Nethereum package?
Juan Blanco
@juanfranblanco
Apr 26 2018 13:52
you should get the same signature
Juan Blanco
@juanfranblanco
Apr 26 2018 15:24
if you generate them yes and you have them
@_Salazar_F_twitter
Psilon
@Pzixel
Apr 26 2018 16:52
Is there any channel where I can ask general Ethereum questions?
because I'm stuck, stackoverflow is silent, and Solidity github guys just don't mess with this stuff
Veikko Eeva
@veikkoeeva
Apr 26 2018 18:30
@Pzixel Have you tried https://ethereum.stackexchange.com/ ?
Psilon
@Pzixel
Apr 26 2018 18:31
Yep
Juan Blanco
@juanfranblanco
Apr 26 2018 18:45
@Pzixel check all the ethereum channels in gitter
What is your question
Psilon
@Pzixel
Apr 26 2018 18:48
I have already asked in solidity)
It has nothing to do with Nethereum so I don't bother you
Juan Blanco
@juanfranblanco
Apr 26 2018 18:49
that is nice of you :)
Psilon
@Pzixel
Apr 26 2018 18:49
:smile:
Juan Blanco
@juanfranblanco
Apr 26 2018 18:53
I have checked it, I assume that the return of IsMatch is false after deployment
in Parity?
But not in Geth?
false will be zero
Psilon
@Pzixel
Apr 26 2018 18:54
No
it's true
Juan Blanco
@juanfranblanco
Apr 26 2018 18:54
well it is true
but you get false in parity?
Psilon
@Pzixel
Apr 26 2018 18:54
I get default value in parity
it's default behavior when some error occurs
it just ends with default value
Juan Blanco
@juanfranblanco
Apr 26 2018 18:55
yes 0
Psilon
@Pzixel
Apr 26 2018 18:55
if I return tuple, it would be a tuple with all defaults
Juan Blanco
@juanfranblanco
Apr 26 2018 18:55
false
so bad deployment
although the tuple thing is interesting
Psilon
@Pzixel
Apr 26 2018 18:56
for example if I write return (1000, 1000, true) it would (0,0,false) even if I don't have these values in my contract
it just silently returns defaults
Juan Blanco
@juanfranblanco
Apr 26 2018 18:57
yeah your contract does not seem to have been deployed
what happens when you try to get address[] public requests
requests[0]
or mainly just GetCode()
Psilon
@Pzixel
Apr 26 2018 18:59

yeah your contract does not seem to have been deployed

what do you mean?

it has an address, doesn't it mean it's deployed?
Juan Blanco
@juanfranblanco
Apr 26 2018 19:00
no
if an error occurred whilst deployment (ie ran out of gas)
you will get an address but nothing else
just use GetCode
Psilon
@Pzixel
Apr 26 2018 19:01
Unfortunately, I cannot check it right now
Juan Blanco
@juanfranblanco
Apr 26 2018 19:01
well when you have a second
Psilon
@Pzixel
Apr 26 2018 19:02
I have no access to working machine whilst my home network is censored by government which blocks amazon where I host my blockchain docker image
I've downloaded installer via VPN but it require itself internet connection which cannot go through tunnels :)
sad story
Have to wait until next working day
Juan Blanco
@juanfranblanco
Apr 26 2018 19:02
well tomorrow :)
Psilon
@Pzixel
Apr 26 2018 19:03
:+1:
Juan Blanco
@juanfranblanco
Apr 26 2018 19:03
you can get the nethereum poa
kianmehr21
@kianmehr21
Apr 26 2018 19:03
hi ... is there any way to watch event in Nethereum? watch event and change the view (for example in mvc view with SignalR) in truffle and javascript when an event is fired (in smart contract) we can catch this event and referesh UI .
@Pzixel
@kianmehr21 yes you can
using Filters
check the docs / workbooks
kianmehr21
@kianmehr21
Apr 26 2018 19:07
@juanfranblanco thanks
kianmehr21
@kianmehr21
Apr 26 2018 21:12

I use Filter but always logs array is empty

TransactionReceipt res = await swecService.TransferAndWaitForReceiptAsync(tf);           
var transferEvent = swecService.GetTransferEvent();
var filterInput = transferEvent.CreateFilterInput(new BlockParameter(res.BlockNumber), BlockParameter.CreateLatest());
var logs = await transferEvent.GetAllChanges<TransferEvent>(filterInput);

I use Ganache test rpc