2018-06-13 17:47:11 +00:00
|
|
|
/*global contract, config, it*/
|
|
|
|
const assert = require('assert');
|
|
|
|
const AnotherStorage = require('Embark/contracts/AnotherStorage');
|
|
|
|
|
|
|
|
config({
|
|
|
|
contracts: {
|
2019-07-12 16:40:27 +00:00
|
|
|
deploy: {
|
|
|
|
AnotherStorage: {
|
|
|
|
args: ['$ERC20']
|
|
|
|
}
|
2018-06-13 17:47:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
contract("AnotherStorageWithInterface", function() {
|
|
|
|
this.timeout(0);
|
|
|
|
|
|
|
|
it("sets an empty address because ERC20 is an interface", async function() {
|
|
|
|
let result = await AnotherStorage.methods.simpleStorageAddress().call();
|
2018-10-18 14:59:12 +00:00
|
|
|
assert.strictEqual(result.toString(), '0x0000000000000000000000000000000000000000');
|
2018-06-13 17:47:11 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|