2018-06-07 20:14:42 +00:00
|
|
|
/*global contract, config, it*/
|
2018-04-25 17:05:58 +00:00
|
|
|
const assert = require('assert');
|
2018-06-07 20:14:42 +00:00
|
|
|
const PluginStorage = require('Embark/contracts/PluginStorage');
|
|
|
|
const SimpleStorage = require('Embark/contracts/SimpleStorage');
|
2018-06-01 14:48:29 +00:00
|
|
|
|
|
|
|
config({
|
|
|
|
contracts: {
|
2019-08-30 20:50:20 +00:00
|
|
|
deploy: {
|
|
|
|
"SimpleStorage": {
|
|
|
|
args: [100]
|
|
|
|
},
|
|
|
|
"PluginStorage": {
|
|
|
|
args: ["$SimpleStorage"]
|
|
|
|
}
|
2018-06-01 14:48:29 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2018-04-25 17:05:58 +00:00
|
|
|
|
|
|
|
contract("PluginSimpleStorage", function () {
|
|
|
|
this.timeout(0);
|
|
|
|
|
|
|
|
it("set SimpleStorage address", async function () {
|
|
|
|
let result = await PluginStorage.methods.simpleStorageAddress().call();
|
|
|
|
assert.equal(result.toString(), SimpleStorage.options.address);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|