These are chat archives for Nethereum/Nethereum

18th
Oct 2017
Tomas Tichy
@ttichy
Oct 18 2017 02:41
hey @juanfranblanco - when I try to call myFunction.EstimateGasAsync(contractParams), I get ethereum.JsonRpc.RpcClient: invalid argument 0: json: cannot unmarshal hex string of odd length into Go struct field CallArgs.to of type common.Address.
any ideas? thanks in advance :)
Juan Blanco
@juanfranblanco
Oct 18 2017 04:05
@FirefightGI the documentation is slowly getting build
the examples are getting moved to workbooks
if you don't know something ask for it, best way
@ttichy it seems an issue with one of the overloads
"mainly passing the wrong parameters"
try naming the parameters
Karsten Gebbert
@krgn
Oct 18 2017 07:09
Hey good morning! I'm getting this error I find difficult to understand properly: "Invalid use of account". This happens when I create a new Account and a corresponding Web3 with ManagedAccount, followed by deploying a contract (or a transaction to a contract). I also made sure that account is properly funded to make a transaction and that its unlocked.
Any hints why this might fail?
Juan Blanco
@juanfranblanco
Oct 18 2017 08:16
@krgn you will need to create a new instance of web3 with your new account
if you are sending from that one
(i am roughly guessing the issue)
Karsten Gebbert
@krgn
Oct 18 2017 08:18
@juanfranblanco hm, I'm doing that, strange
I can post a more compelete example of the test
Juan Blanco
@juanfranblanco
Oct 18 2017 08:18
sure
that will be better
Karsten Gebbert
@krgn
Oct 18 2017 08:19
cool :smile: :thumbsup:
Juan Blanco
@juanfranblanco
Oct 18 2017 08:20
:)
Juan Blanco
@juanfranblanco
Oct 18 2017 08:27
@ttichy try adding also the addressFrom field
NAWAZUDDIN552
@NAWAZUDDIN552
Oct 18 2017 11:14
@juanfranblanco web3.Convert.ToWei(0.001) I got the error web3.convert cannot be accessed with an instance reference.
kai
@kaista82_twitter
Oct 18 2017 11:45
Web3.Convert if you're using an instance it think its static
not web3 (which as i say i assume is an instance)
FirefightGI
@FirefightGI
Oct 18 2017 19:09
If I create a .sol contract on the fly via StreamWriter or similar, how can I test/publish the contract from within a desktop application?
Karsten Gebbert
@krgn
Oct 18 2017 19:09
@juanfranblanco figured it out. I must have been some confusion in the depths of my code https://gist.github.com/krgn/f668fa8a2ae69cf8012b30cadd4fa9e7
woops, sorry that its so big
Fernando Garcia
@fergarrui
Oct 18 2017 22:26
Hi guys, a question.
If I am using the Unity version of Nethereum, how can I watch events? The explanations on the tutorial cannot be used in Unity, right?