Open barakman opened 5 years ago
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".
A
typeof A == "string"
However, since you also use A.address, this variable has to be an object of some sort.
A.address
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
From the website:
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