Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Deployer basic example is very obscure #228

Open
barakman opened this issue Oct 10, 2018 · 0 comments
Open

Deployer basic example is very obscure #228

barakman opened this issue Oct 10, 2018 · 0 comments

Comments

@barakman
Copy link

barakman commented Oct 10, 2018

From the website:

// Deploy A, then deploy B, passing in A's newly deployed address
deployer.deploy(A).then(function() {
  return deployer.deploy(B, A.address);
});

I would tend to guess that A is the name of a contract, i.e., typeof A == "string".

However, since you also use A.address, this variable has to be an object of some sort.

How do I generate this object (or where do I obtain it from)?

The answer is `A = artifacts.require("A.sol"), so it should probably precede the code above.

Thanks

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

1 participant