Closed ghost closed 6 years ago
@oddmarthon-lende Apologies for the delay in getting to this - I wasn't able to reproduce this issue. When I look at the two images you provided, it seems like the data values are different for several fields in the return object which suggests the issue might be a difference locally - different versions of the same contract perhaps?
Browser
Console
Closing this for house-keeping since it's been open for a while but please re-open if you're still seeing this unusual behavior with the latest Truffle.
Issue
In the browser the return data for a contract function is corrupted. In truffle console it looks ok and also in remix ide. I tried reordering and putting the arrays last, but then they are always empty. Im running truffle with webpack.
Steps to Reproduce
Create a contract
`
`
Then access the function from the browser
Test.deployed().then((t) => { t.test.call().then((response) => { console.log(response); } });
Expected Behavior
That the data is correct for all the fields in the return data
Actual Results
Browser Screenshot Truffle Console screenshot
Environment