These are chat archives for Nethereum/Nethereum

10th
Feb 2018
doreegekku
@doreegekku
Feb 10 2018 01:35
Err2.png
Having some trouble even getting an understandable error in a new unity project.
Above is the error we're getting in unity
We're doing some pretty simple transaction calls, but no matter what, we get that error with all the receipts.
We're using Ganache, and I saw one other error similar to it about a month ago, but it has supposedly been fixed since then in a new version. Not sure what I can do to figure it out.
She Jong Shon
@kkagill
Feb 10 2018 13:00
@juanfranblanco Yes. I deployed to Ropsten and I can retrieve result. Take a look at here.
So there seems to be no problem for solidity code, but I suspect my DTO is not doing its job or maybe something else.
She Jong Shon
@kkagill
Feb 10 2018 13:11
@juanfranblanco when using Nethereum, it retrieves 0 result.
Image
Juan Blanco
@juanfranblanco
Feb 10 2018 13:12
@EKostan yes that works, I need to add a util for that, maybe in util :)
@doreegekku so mainly you are connecting to ganache, and you see the issue of the status field
does it work for you using geth?
Juan Blanco
@juanfranblanco
Feb 10 2018 13:40
@kkagill quick test locally, the contract transaction uses all the gas, so it is a problem on the transaction not getting the result
@kkagill your input is wrong your values don't match
222 != 222 wei
this works
uint bettingPrice = 222;
                object[] functionInput = new object[] { matchId, score1, score2, bettingPrice };

                var transactionInput = new TransactionInput
                {
                    From = account.Address,
                    Gas = new HexBigInteger(3000000),
                    Value = new HexBigInteger(222)
                };
She Jong Shon
@kkagill
Feb 10 2018 14:22
@juanfranblanco were you able to retrieve result?
Image
She Jong Shon
@kkagill
Feb 10 2018 14:48

@juanfranblanco but calling

var result2 = await functionGetBetterBettingInfo.CallDeserializingToObjectAsync<GetBetterBettingInfo>(senderAddress);

does not require gas since its function is constant right? So the senderAddress places bet and variable result returns true if the transaction is successful (works), and result2 should pull that better(senderAddress)'s info. Still weird result2 does not return anything

She Jong Shon
@kkagill
Feb 10 2018 16:24
@juanfranblanco Juan, so I tested with another public constant returns function, but it does not return data I expect. It's a simple function that returns contract balance, and I'm expecting 222 as a result. Are there more steps I need to implement to call public constant returns function properly and get data I want? (fyi, tested with ropsten and it returns 222)
Image
doreegekku
@doreegekku
Feb 10 2018 17:39
@juanfranblanco We switched to testing on Kovan last night and it seems to work. Now I'm running into a different issue, in that I don't know how to get back a array of uint256s from the blockchain. We're getting output back but I'm not sure what options I have to decode it. I tried a list of big ints, but since there is no default constructor that throws an error.