Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add storage to oe template (not working) (DO NOT MERGE) #1720

Draft
wants to merge 1 commit into
base: experimental-oe
Choose a base branch
from

Conversation

Schwartz10
Copy link
Collaborator

@Schwartz10 Schwartz10 commented Dec 4, 2019

Hey @Quazia @ottodevs and @topocount this is my first attempt at adding a default storage app to the OE template. This first commit is just to get the contracts working, and not any of the frontend / parcel stuff yet.

Important files:

changes to BaseOEApps
changes to DevTemplate.sol

storage app package.json
storage app Storage.sol

The dev template compiles (verified by navigating into the dev template directory and manually running npm run compile). But attempting to npm run start:dev from the root directory gets a VM revert:

Using network 'rpc'.

Error: VM Exception while processing transaction: revert
    at Object.InvalidResponse (/Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/web3/lib/web3/errors.js:38:1)
    at /Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/web3/lib/web3/requestmanager.js:86:1
    at /Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/packages/truffle-provider/wrapper.js:134:1
    at XMLHttpRequest.request.onreadystatechange (/Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/web3/lib/web3/httpprovider.js:128:1)
    at XMLHttpRequestEventTarget.dispatchEvent (/Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:64:1)
    at XMLHttpRequest._setReadyState (/Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:354:1)
    at XMLHttpRequest._onHttpResponseEnd (/Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:509:1)
    at IncomingMessage.<anonymous> (/Users/jonathanschwartz/Documents/owl/planning-suite/node_modules/truffle/build/webpack:/~/xhr2/lib/xhr2.js:469:1)
    at IncomingMessage.emit (events.js:214:15)
    at endReadableNT (_stream_readable.js:1178:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21)

Before diving in any further I wanted to ask you a few Q's:

  1. Is this revert from reaching the gas limit? If so, should we just install the storage app manually after running start:dev with the @aragon/cli?
  2. Is continuing down this path wasted effort? (I only spent about an hour messing with it this morning, so haven't sunk much time into it at all yet).

If the revert is coming from a solidity error that I overlooked, I'm happy to keep poking around (or let me know if you see it!). Would be convenient to not have to separately install.

Thanks for any help!

@Schwartz10 Schwartz10 changed the title add storage to oe template (not working) add storage to oe template (not working) (DO NOT MERGE) Dec 4, 2019
@Schwartz10
Copy link
Collaborator Author

@ottodevs ottodevs self-assigned this Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants