These are chat archives for Nethereum/Nethereum

1st
Nov 2017
FirefightGI
@FirefightGI
Nov 01 2017 18:50
Tried to setup solc-js on a server but I'm not a web/server dev so when I got to Node JS I just figured it was out of my expertise. Where can I pick up the C++ Solidity compiler? Is it included in cpp-ethereum, I'm going to try and write a client side C# wrapper either by hand or with this https://www.tangiblesoftwaresolutions.com/product_details/cplusplus_to_csharp_converter_details.html if Unity can't compile the C++ without it being wrapped in C#.
Alexey_Homosapiens
@AlekseiStalker
Nov 01 2017 19:10
Hello everybody
I'm a beginner block—Āhain developer from ukraine.
A few details about myself. I started studying programming two years ago with learn C++ and C#. In the future, I decided to take C# as my main programming language and the first real experience I received was in developing games on Unity platform. Nowadays fate has led me to write a smart contract for several ICO. Now I want to continue to somehow develop in this direction and it would be great to combine my knowledge of C # with smart contracts on solidity.
The question is how strong I need knowledge of web programming to write programs to call and refer to the methods of my smart contract?
I'm very weak about web programming...
And yes, forgive me for my English! =)
FirefightGI
@FirefightGI
Nov 01 2017 19:30
I'm in a similar boat, it really depends on what you are doing and if your app needs to connect to the web. (replied to your conversation)
dtessier82
@dtessier82
Nov 01 2017 21:01
Hello I keep getting the following error The field to must have byte length of 20 when trying to use CallFunction<string>()
Juan Blanco
@juanfranblanco
Nov 01 2017 21:03
@AlekseiStalker you don't need to know any web programming if you don't want to / need it
that might help you anyway
@dtessier82 i am assuming that you are using the erc20 contract or somethign like that
dtessier82
@dtessier82
Nov 01 2017 21:04
yes
Juan Blanco
@juanfranblanco
Nov 01 2017 21:04
and your address is not the right parameter
or not supplied
address TO
dtessier82
@dtessier82
Nov 01 2017 21:05
var f = x.CallAsync<string>().Result;
Juan Blanco
@juanfranblanco
Nov 01 2017 21:06
so what is x
and what do you want to do?
the same if you check this workbook
dtessier82
@dtessier82
Nov 01 2017 21:06
x is the refercent to the HelloWorld function
that might help
dtessier82
@dtessier82
Nov 01 2017 21:06

contract HelloWorld {

function sayHello() public returns(int) {
    return "hi";
}

}

Juan Blanco
@juanfranblanco
Nov 01 2017 21:07
ah cool
dtessier82
@dtessier82
Nov 01 2017 21:07
that is all the contract does. ignore the (int)
it is actually a string
Juan Blanco
@juanfranblanco
Nov 01 2017 21:07
ah i was going to say that
but is it declared as a string
dtessier82
@dtessier82
Nov 01 2017 21:07
var ct = web3.Eth.GetContract(GetContractAbi(), ctx);
var x = ct.GetFunction("sayHello");
try
{
var f = x.CallAsync<string>(.Result;
Juan Blanco
@juanfranblanco
Nov 01 2017 21:08
what is your abi like
dtessier82
@dtessier82
Nov 01 2017 21:08
        return @"[{""constant"":false,""inputs"":[],""name"":""sayHello"",""outputs"":[{""name"":"""",""type"":""string""}],""payable"":false,""stateMutability"":""nonpayable"",""type"":""function""}]";
Juan Blanco
@juanfranblanco
Nov 01 2017 21:08
ok triple checking on the string
dtessier82
@dtessier82
Nov 01 2017 21:09
the CallAsync has mainy overrides
Juan Blanco
@juanfranblanco
Nov 01 2017 21:10
yes in theory that should be fine
what is your contract address
is that correct?
ctx i assume
dtessier82
@dtessier82
Nov 01 2017 21:11
should be
checking
Juan Blanco
@juanfranblanco
Nov 01 2017 21:12
that will be the field to
on the call
dtessier82
@dtessier82
Nov 01 2017 21:13
HA! inccorrect
thanks
problem sovled!
Juan Blanco
@juanfranblanco
Nov 01 2017 21:14
:) great
zeeshan taj
@tajzeeshan_twitter
Nov 01 2017 22:00
hi
Question for Juan : does Web3 inerface includes Web3.CreateBatch() ?
Juan Blanco
@juanfranblanco
Nov 01 2017 22:01
no
zeeshan taj
@tajzeeshan_twitter
Nov 01 2017 22:02
any plans on doing it?
Juan Blanco
@juanfranblanco
Nov 01 2017 22:02
to batch rpc calls?
not likely
overall it is designed to allow it
as we have ids per request
but you will have to go low level for contract requests
zeeshan taj
@tajzeeshan_twitter
Nov 01 2017 22:03
yeah
Juan Blanco
@juanfranblanco
Nov 01 2017 22:04
i don't think you will get a great performance improvement if any
there were conversations that it actually was worst at the client side (ie geth)
hence not much support on their side