2017-07-03 18:15:43 -04:00
|
|
|
contract("AnotherStorage", function() {
|
2018-01-05 15:10:47 -05:00
|
|
|
this.timeout(0);
|
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-12-22 13:07:43 -05:00
|
|
|
EmbarkSpec.deployAll(contractsConfig, () => { done() });
|
2017-02-09 19:38:02 -05:00
|
|
|
});
|
|
|
|
|
2018-04-17 14:48:31 -04:00
|
|
|
it("set SimpleStorage address", async function() {
|
|
|
|
let result = await AnotherStorage.methods.simpleStorageAddress().call();
|
|
|
|
assert.equal(result.toString(), SimpleStorage.options.address);
|
2017-02-09 19:38:02 -05:00
|
|
|
});
|
|
|
|
|
|
|
|
});
|