trufflesuite / drizzle

Reactive Ethereum dapp UI suite
907 stars 238 forks source link

Reducer not generating proper contracts object #102

Open asebak opened 3 years ago

asebak commented 3 years ago

import { drizzleReducers } from '@drizzle/store' import { combineReducers } from 'redux' import { routerReducer } from 'react-router-redux'

const reducer = combineReducers({ routing: routerReducer, ...drizzleReducers })

drizzleReducers.contracts doesn't generate the proper objects. It's missing the "methods" property and all the contracts functions are just empty objects. I tested with an old version from 2 years ago and this reducer function was previously working with everything populated.

image

asebak commented 3 years ago

I am using state hooks, so maybe your libraries don't support that since it's alot newer.