These are chat archives for Nethereum/Nethereum

10th
Dec 2017
Sean Finnegan
@cowtrix
Dec 10 2017 10:32
Anyone know if it's possible to get Unity3D building into WebGL and then interacting with Web3 browser providers like MetaMask?
that is the sample
@cowtrix
refer to the section at the bottom and unity3d webgl external support
Maximilian Weber MWC
@CineTekDev_twitter
Dec 10 2017 15:09
do I have to decode data returned by FunctionOutput manually from hex to like unicode?
image.png
Owner currently returns a hex string
Maximilian Weber MWC
@CineTekDev_twitter
Dec 10 2017 16:00
@juanfranblanco is it possible that DecodeDTOTypeOutput does not work with bool/string ? The contract returns all data successfully and in the correct order but when I try to receive strings or bools as part of the FunctionOutput I get "array index out of range" exception
image.png
Juan Blanco
@juanfranblanco
Dec 10 2017 16:38
@CineTekDev_twitter address maps to a string, but it will be a hex
a normal string will be utf8 decoded
and bool maps to a bool yeah
Maximilian Weber MWC
@CineTekDev_twitter
Dec 10 2017 17:10
so this is what I would get from the smartcontract
image.png
image.png
Maximilian Weber MWC
@CineTekDev_twitter
Dec 10 2017 17:17
this gives me the "array index out of range" error which does not happen when I comment out the bool or string in the above example
Devedse
@devedse
Dec 10 2017 21:19
@juanfranblanco, I just found out remix had an "optimize" function. Does this function also exist in your extension for vscode?