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

TypeError: o["install"] is not a function #606

Closed
jfparadis opened this issue Feb 26, 2020 · 3 comments · Fixed by #636
Closed

TypeError: o["install"] is not a function #606

jfparadis opened this issue Feb 26, 2020 · 3 comments · Fixed by #636
Assignees
Labels
bug Something isn't working

Comments

@jfparadis
Copy link
Contributor

jfparadis commented Feb 26, 2020

When attempting to upload a contract, we get this error:

TypeError: o["install"] is not a function

The error occurs in forwardHandlers/applyMethod:

Screen Shot 2020-02-26 at 10 43 57 AM

Because argument o is a presence:

Screen Shot 2020-02-26 at 10 45 44 AM

Reproduction

  1. Run the larger demo as explained in the readme, or scenario 3:
cd packages/cosmic-swingset
make scenario3-setup
make scenario3-run
  1. Try to load a contract
cd t3
node --inspect-brk ../bin/ag-solo upload-contract 'zoe:autoswap'='../../agoric-cli/template/contract/deploy-autoswap.js'
@jfparadis jfparadis added the bug Something isn't working label Feb 26, 2020
@michaelfig michaelfig self-assigned this Feb 26, 2020
@jfparadis
Copy link
Contributor Author

Any ETA to resolve this problem? The CLI is also broken (see #634), and it doesn't look that we have any alternative.

@michaelfig
Copy link
Member

Sorry for the delay, I'm on it now.

michaelfig added a commit that referenced this issue Feb 29, 2020
Refs #606

Fixes TypeError: o["install"] is not a function
@michaelfig
Copy link
Member

The PR will fix the issue, but you also need to run upload-contract with an actual contract, not a deploy script. So, this is complementary to #634

Try with: zoe:autoswap=../../agoric-cli/template/contract/autoswap.js

michaelfig added a commit that referenced this issue Feb 29, 2020
Closes #606

Usage: `ag-solo bundle <PATH TO DAPP>/deploy.js`
from within an ag-solo directory in order to run a deployment script.
michaelfig added a commit that referenced this issue Feb 29, 2020
Closes #606

Usage: `ag-solo bundle <PATH TO DAPP>/deploy.js`
from within an ag-solo directory in order to run a deployment script.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants