trufflesuite / drizzle-react-components-legacy

A set of useful components for common dapp UI elements.
96 stars 70 forks source link

ContractData does not support array of objects response #35

Closed ilanolkies closed 5 years ago

ilanolkies commented 6 years ago

I'm trying to use a ContractData to query a method which response is

[ BigNumber { s: 1, e: 0, c: [ 0 ] },
  '0x0000000000000000000000000000000000000000',
  BigNumber { s: 1, e: 0, c: [ 0 ] } ]

This type of object is not supported to be displayed: objects inside a list.

https://github.com/trufflesuite/drizzle-react-components/blob/2dda732ab9ce17e19693495647048f7b62de6aaf/src/ContractData.js#L60

It should display the structures recursively.

honestbonsai commented 5 years ago

@ilanolkies This looks to be the same as #6, which just got closed. Please reopen if you still experience issues.

ilanolkies commented 5 years ago

Thanks. I'll test it ASAP