2020-01-24 12:04:42 +01:00
|
|
|
/*global artifacts, contract, config, it*/
|
2018-04-25 13:05:58 -04:00
|
|
|
const assert = require('assert');
|
2020-01-24 12:04:42 +01:00
|
|
|
const PluginStorage = artifacts.require('PluginStorage');
|
|
|
|
const SimpleStorage = artifacts.require('SimpleStorage');
|
2018-06-01 10:48:29 -04:00
|
|
|
|
|
|
|
config({
|
|
|
|
contracts: {
|
2019-08-30 15:50:20 -05:00
|
|
|
deploy: {
|
|
|
|
"SimpleStorage": {
|
|
|
|
args: [100]
|
|
|
|
},
|
|
|
|
"PluginStorage": {
|
|
|
|
args: ["$SimpleStorage"]
|
|
|
|
}
|
2018-06-01 10:48:29 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
2018-04-25 13:05:58 -04: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);
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|