Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

README.md seems to read the state incorrectly #63

Closed
asselstine opened this issue May 14, 2018 · 3 comments
Closed

README.md seems to read the state incorrectly #63

asselstine opened this issue May 14, 2018 · 3 comments

Comments

@asselstine
Copy link
Contributor

asselstine commented May 14, 2018

The way of accessing the state is shown as:

// Use the dataKey to display data from the store.
return state.contracts.SimpleStorage.methods.storedData[dataKey].value

However 'methods' is undefined. I am able to access the state using:

// Use the dataKey to display data from the store.
return state.contracts.SimpleStorage.storedData[dataKey].value

drizzle 1.1.5

@asselstine
Copy link
Contributor Author

PR here trufflesuite/drizzle#64

@DalderupMaurice
Copy link

This can be closed?

@asselstine
Copy link
Contributor Author

Yup; resolved with the PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants