trufflesuite / drizzle

Reactive Ethereum dapp UI suite
906 stars 238 forks source link

Incorrect action type reference in Drizzle store #77

Closed MalloryLeeWong closed 4 years ago

MalloryLeeWong commented 4 years ago

After opening Drizzle, and then running yarn to build, the console outputs the following warning message related to the Drizzle store:

WARNING in ./src/DrizzleContract.js 114:16-52 "export 'SEND_CONTRACT_TX' (imported as 'TransactionsActions') was not found in './transactions/constants' @ ./src/Drizzle.js @ ./src/index.js

The issue is that in the DrizzleContract.js file in the store, an action type called SEND_CONTRACT_TX is referred to asTransactionsActions.SEND_CONTRACT_TX (see image below), which is not defined in the file at './transactions/constants' which TransactionsActions was imported from.

action-type-issue

The action type SEND_CONTRACT_TX is defined as a constant in a different file at './contracts/constants', so the action type would instead correctly be accessed as ContractActions.SEND_CONTRACT_TX. This should be a straightforward issue to resolve.