2017-07-03 18:15:43 -04:00
|
|
|
contract("AnotherStorage", function() {
|
2017-02-09 19:38:02 -05:00
|
|
|
before(function(done) {
|
2017-03-11 21:49:12 -05:00
|
|
|
this.timeout(0);
|
2017-02-09 19:38:02 -05:00
|
|
|
var contractsConfig = {
|
|
|
|
"SimpleStorage": {
|
|
|
|
args: [100]
|
|
|
|
},
|
|
|
|
"AnotherStorage": {
|
|
|
|
args: ["$SimpleStorage"]
|
2017-02-09 21:05:45 -05:00
|
|
|
},
|
|
|
|
"Token": {
|
|
|
|
deploy: false,
|
|
|
|
args: [1000]
|
|
|
|
},
|
|
|
|
"MyToken": {
|
|
|
|
instanceOf: "Token"
|
|
|
|
},
|
|
|
|
"MyToken2": {
|
|
|
|
instanceOf: "Token",
|
|
|
|
args: [2000]
|
2017-02-09 19:38:02 -05:00
|
|
|
}
|
|
|
|
};
|
|
|
|
EmbarkSpec.deployAll(contractsConfig, done);
|
|
|
|
});
|
|
|
|
|
2017-02-09 21:05:45 -05:00
|
|
|
it("set SimpleStorage address", function(done) {
|
2017-02-09 19:38:02 -05:00
|
|
|
AnotherStorage.simpleStorageAddress(function(err, result) {
|
|
|
|
assert.equal(result.toString(), SimpleStorage.address);
|
|
|
|
done();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|