These are chat archives for Nethereum/Nethereum

15th
Aug 2018
Linh Nguyen
@linhnc0102
Aug 15 2018 02:28

Hi,
var web3 = new Web3.Web3(ProviderWebNodeSeed);
var contract = web3.Eth.GetContract(Contracts.ContractAbi, Contracts.ContractAddress);
var balanceFunction = contract.GetFunction("balanceOf");
var data = balanceFunction.CallAsync<BigInteger("0xbd9d0f405ec3edda9860d111a52dd836736bf9a3");

It not working. I got message for data variable: data = Id = 149, Status = WaitingForActivation, Method = "{null}", Result = "{Not yet computed}"

Juan Blanco
@juanfranblanco
Aug 15 2018 04:50
your are missing "await"
Enigmatic
@EnigmaticUnreal_twitter
Aug 15 2018 05:55
var data = await balanceFunction.CallAsync<BigInteger("0xbd9d0f405ec3edda9860d111a52dd836736bf9a3");
Oops. Saw this earlier during the morning but didn't have the chance to respond.
Linh Nguyen
@linhnc0102
Aug 15 2018 10:01
@EnigmaticUnreal_twitter , @juanfranblanco Thank you
Trần Huy Duẫn
@DuanTranHuy
Aug 15 2018 16:20
The function contract.DecodeInput is difference between nuget package 2.5.1 and 3.0.0-rc1.
Trần Huy Duẫn
@DuanTranHuy
Aug 15 2018 16:38
Nvm i used TransferEventDTO instead