These are chat archives for Nethereum/Nethereum

20th
Nov 2017
csharper123
@csharper123_twitter
Nov 20 2017 02:04
Hey Juan, I actually solved all of the above
So that's good news!
But there is one last thing - I can communicate with the test contract (multiply) on testnet, but when I ask it to multiply it gives back zero as the result
I am calling it with this:
        var transactionHash =  web3.Eth.DeployContract.SendRequestAsync(abi, byteCode,
                    account.Address, g, 7, 8);

        var mineResult = await web3Geth.Miner.Start.SendRequestAsync(6);

        System.Threading.Thread.Sleep(20000);
        var receipt = await web3.Eth.Transactions.GetTransactionReceipt.SendRequestAsync(transactionHash.Result);
        System.Threading.Thread.Sleep(20000);
        var contractAddress = receipt.ContractAddress;
        System.Threading.Thread.Sleep(20000);
        var contract = web3.Eth.GetContract(abi, contractAddress);

        var multiplyFunction = contract.GetFunction("multiply");

        double result = 0;

        result = await multiplyFunction.CallAsync<int>(7);
but it always returns zero as the result. Do you see anything wrong?
ChinhP
@Chinh-P
Nov 20 2017 02:22
any way to identify What Ethereum wallet using by address?
No, as I know, 1 address basically can be used by many kind of wallet (just export and import the private key) So, there is no way to detect which kind of wallet is using base on the address
csharper123
@csharper123_twitter
Nov 20 2017 03:03
hey @juanfranblanco is it possible I need to set the task to wait longer?
Juan Blanco
@juanfranblanco
Nov 20 2017 12:37
@csharper123_twitter when using testrpc you don't need to unlock the accounts, when it starts it provides you a set of accounts and private keys associated with it
you can just select the first one
check testrpc embedded for a sample
re your contract it might not have deployed succesfully
you can use GetCode to see if there is any code associated with it
which supplies some gas, that might have been the issue
also check the workbooks sample
Juan Blanco
@juanfranblanco
Nov 20 2017 12:42
re waiting yes
hak
@hakart_twitter
Nov 20 2017 12:59
I wonder can we use Nethereum for EthereumCLassic ?
Ganesh Prasad Kumble
@0zAND1z
Nov 20 2017 13:27
LOGICAL ERROR: Checking the token balance for an account from a specified contract returns 0. Here's what we're calling: var result= await x.GetBalanceOfAsync<Function>(_tokenAddress);
What's possibly going wrong? No errors or exception just showing 0
Juan Blanco
@juanfranblanco
Nov 20 2017 13:37
@hakart_twitter yes
@kggp1995 same as before
has your contract deployed succesfully
hak
@hakart_twitter
Nov 20 2017 14:42
@juanfranblanco Thanks, what we should configure or additional do to connecting EthereumClassic blockchain ?
Juan Blanco
@juanfranblanco
Nov 20 2017 15:03
well, theoretically it should be the same
so if they keep using the standard api
you should just need to change the url and you are set
Juan Blanco
@juanfranblanco
Nov 20 2017 15:11
note that eip 155 is not implemented yet
so you should use different accounts per chain
hak
@hakart_twitter
Nov 20 2017 15:26
@juanfranblanco thank you !
Ganesh Prasad Kumble
@0zAND1z
Nov 20 2017 18:04
@juanfranblanco , yes the contract is successfully deployed. I'm able to use Truffle console and call functions