These are chat archives for Nethereum/Nethereum

7th
Dec 2017
Devedse
@devedse
Dec 07 2017 00:00 UTC
@juanfranblanco , more questions :), how do you pass an array to a smart contract?
e.g. function blah(uint256[] ids)
System.Exception: 'Too many arguments: 4 > 1'
I keep getting that
Devedse
@devedse
Dec 07 2017 00:33 UTC
WTF I fixed it, was passing a biginteger instead of a hexbiginteger
which resulted in the wrong overload being executed..
byebye 1 hour
Stefan Naegeli
@snaegeli
Dec 07 2017 08:01 UTC
Hmm still struggling with detecting the status of a transaction when deploying a contract . Also after upgrade to 1.7.3,
  • when I deploy my contract with say 50 gas I get an exception "intrinsic gas too low" (-> as expected)
  • when I deploy my contract with 1'000'000 gas I get a transaction receipt with gas used 495'761. However, when I look at the contract in Mist the contract contains no public fields or methods.
  • when I deploy my contract with 2'000'000 gas I get a transaction receipt with gas used 1'191'161 and everything is fine.
    In either case eth.getTransactionReceipt(trxHash).status is undefined
Is there a good way to detect the second case where the contract deployment actually failed due to insufficient gas?
Sean Finnegan
@cowtrix
Dec 07 2017 10:32 UTC
yo I'm trying to build Nethereum 2.1.0 out of VS2017, and it isn't working
could anyone help?
It can't even seem to find classes like System.Object
here's the build log:
Juan Blanco
@juanfranblanco
Dec 07 2017 11:06 UTC
@snaegeli your contract on the second point, was not deployed successfully, you can verify this by using GetCode as it will return "0x". Mainly there was not enough gas supplied
@cowtrix it works out of the box on mine
i cannot really help you on that one
Sean Finnegan
@cowtrix
Dec 07 2017 11:14 UTC
dangit
can I just download the DLLs anywhere?
Juan Blanco
@juanfranblanco
Dec 07 2017 12:49 UTC
of course
there are nugets
for everything
and for unity they are in the releases
Sean Finnegan
@cowtrix
Dec 07 2017 12:50 UTC
what do you mean they are in the releases?
Sean Finnegan
@cowtrix
Dec 07 2017 12:55 UTC
Ah thank you so much!
Alexander Yarushin
@aayarushin
Dec 07 2017 12:57 UTC
@juanfranblanco Why do we need to unlock accounts when starting geth client?
I am asking because I am using metamask and am unlocking accounts there
@juanfranblanco Hi :)
Juan Blanco
@juanfranblanco
Dec 07 2017 13:01 UTC
Hi :) You don't need to
Alexander Yarushin
@aayarushin
Dec 07 2017 13:01 UTC
@juanfranblanco Also, if I will be using one of the public networks with metamask - why I need to have keyfiles in devChain/keystore?
Juan Blanco
@juanfranblanco
Dec 07 2017 13:01 UTC
yet again you don't need to
Alexander Yarushin
@aayarushin
Dec 07 2017 13:01 UTC
:)
Juan Blanco
@juanfranblanco
Dec 07 2017 13:01 UTC
Mainly you own your private keys
the private keys can be stored in the client (Geth)
and any other location
unlocking the client, mainly it gives it access to your private key to sign transactions
Metamask does the same, it stores your private keys in the localstorage of the browser and signs the transactions intercepting the request from web3
Alexander Yarushin
@aayarushin
Dec 07 2017 13:03 UTC
ok, that is why they have proxy...
Juan Blanco
@juanfranblanco
Dec 07 2017 13:03 UTC
the keystore standard is good (as it is a standard) and is portable
well the proxy is a provider / interceptor
of specific calls
then in Nethereum you can then do the same
have an Hdwallet like Metamask based on a seed
use the KeyStore files
or hardcode or use your private key directly
the important thing is the private key :D
with that you sign transactions / messages etc
which are linked to your account which is your identity in this case
Alexander Yarushin
@aayarushin
Dec 07 2017 13:06 UTC
:) that much I know :D:D:D
does something similar to metamask
Alexander Yarushin
@aayarushin
Dec 07 2017 13:09 UTC
cool
I also depend on the web client dapp... use metamask as prototype
for some reason when I send transaction it never returns the promise...
times out looks like
no errors
will definitely take a look at dapphybrid. This we will use for our "web api" backend
Juan Blanco
@juanfranblanco
Dec 07 2017 13:20 UTC
yeah roadmap is to include it in the "wallet" as a startup integrated
solution
Alexander Yarushin
@aayarushin
Dec 07 2017 13:22 UTC
what do you mean?
Juan Blanco
@juanfranblanco
Dec 07 2017 13:27 UTC
oh the Nethereum roadpmap is to include the dapphybrid
integrated in a wallet solution
Alexander Yarushin
@aayarushin
Dec 07 2017 13:34 UTC
similar to metamask?
@juanfranblanco with \testchain\Geth testnet faster mining\windows64\get.exe do I still need to call mine(...)?
Juan Blanco
@juanfranblanco
Dec 07 2017 13:54 UTC
oh don't use that
use the clique one
or parity poa
Raymen Scholten
@raymens
Dec 07 2017 13:55 UTC
Really great to see the progress you made in the last year!
Alexander Yarushin
@aayarushin
Dec 07 2017 13:55 UTC
the question is how realistic are they
it is much faster
those were modifications to geth to mine at 1 second block
@raymens thanks :D
Alexander Yarushin
@aayarushin
Dec 07 2017 13:57 UTC
do I have to mine manually with clique?
Juan Blanco
@juanfranblanco
Dec 07 2017 13:57 UTC
no that it is configured to mine automatically
"mine"
also you can use Parity POA
I need to move it to the main
move / copy
Alexander Yarushin
@aayarushin
Dec 07 2017 14:01 UTC
yhe question is how close is it to real network...
Juan Blanco
@juanfranblanco
Dec 07 2017 14:01 UTC
oh to mainnet
Alexander Yarushin
@aayarushin
Dec 07 2017 14:01 UTC
or say public test net
Juan Blanco
@juanfranblanco
Dec 07 2017 14:01 UTC
it is not closed at all, this is fast
Alexander Yarushin
@aayarushin
Dec 07 2017 14:01 UTC
I meant not speed
Juan Blanco
@juanfranblanco
Dec 07 2017 14:02 UTC
oh you mean real clients
those are real clients
Alexander Yarushin
@aayarushin
Dec 07 2017 14:02 UTC
yeah
Juan Blanco
@juanfranblanco
Dec 07 2017 14:02 UTC
just different consensus
it is parity and geth
but not using POW
using POA
which is a simple consensus
Alexander Yarushin
@aayarushin
Dec 07 2017 14:02 UTC
similar to kovan and rinkeby?
they use POA
Juan Blanco
@juanfranblanco
Dec 07 2017 14:03 UTC
exactly
the same :D
but local with one node
the one you launch
Alexander Yarushin
@aayarushin
Dec 07 2017 14:04 UTC
nice!
thanks!
Raymen Scholten
@raymens
Dec 07 2017 14:48 UTC
Great implementation of the Nethereum.HDWallet library, it only took me about an hour or so to go through it and convert our service to use HD keys
Juan Blanco
@juanfranblanco
Dec 07 2017 15:00 UTC
awesome @raymens :D
Devedse
@devedse
Dec 07 2017 15:21 UTC
@juanfranblanco , I found an issue, if I create multiple instances of Web3 to different networks, Nethereum does it's stuff to the last one
e.g. rinkeby and main
I do a new on rinkeby and then on main
all transactions no matter on what web happen on main
Raymen Scholten
@raymens
Dec 07 2017 15:24 UTC
image.png
Are those errors normal for a clean checkout?
Juan Blanco
@juanfranblanco
Dec 07 2017 15:57 UTC
@devedse do you create a new Web3 for each one?
@raymens yes that is an old project, there was a very nice pull for the start of Unix Ipc using mono classes
i need to remove it
Devedse
@devedse
Dec 07 2017 16:55 UTC
@juanfranblanco yes
Ilan Yosef
@xipher0
Dec 07 2017 18:23 UTC
My netehreum transaction sent to geth client take too long to confirm... Should i change the degault gas limit or price? Please advise.. thank yo
you*
Juan Blanco
@juanfranblanco
Dec 07 2017 21:29 UTC
you will need to adjust the price to get prioritize
@devedse that is very strange as the 2 web3s use different http and connections etc
so they are completely isolated
Devedse
@devedse
Dec 07 2017 21:52 UTC
I literally moved my new above my other new and it worked
and when I moved them back it connected to the wrong network again
:worried:
Or I'm doing something really strange somewhere
I'm not sure :)
Btw, another question, do you know why compiling a contract in remix uses more gas then when I compile one with the solidity extension in vs code and upload it with nethereum?
Juan Blanco
@juanfranblanco
Dec 07 2017 22:07 UTC
well gas usage should be the same, the compilation "engine" is the same
it is solcjs
Devedse
@devedse
Dec 07 2017 22:13 UTC
Hmm it differs quite a bit actually:
it also differs on calls