2020-01-24 11:04:42 +00:00
|
|
|
/*global artifacts, contract, config, it*/
|
2018-06-13 17:47:11 +00:00
|
|
|
const assert = require('assert');
|
2020-01-24 11:04:42 +00:00
|
|
|
const AnotherStorage = artifacts.require('AnotherStorage');
|
2018-06-13 17:47:11 +00:00
|
|
|
|
2019-10-17 18:39:25 +00:00
|
|
|
// FIXME this doesn't work and no idea how it ever worked because ERC20 is not defined anywhere
|
|
|
|
// config({
|
|
|
|
// contracts: {
|
|
|
|
// deploy: {
|
|
|
|
// AnotherStorage: {
|
|
|
|
// args: ['$ERC20']
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
// });
|
2018-06-13 17:47:11 +00:00
|
|
|
|
|
|
|
|
|
|
|
contract("AnotherStorageWithInterface", function() {
|
|
|
|
this.timeout(0);
|
|
|
|
|
2019-10-17 18:39:25 +00:00
|
|
|
xit("sets an empty address because ERC20 is an interface", async function() {
|
2018-06-13 17:47:11 +00:00
|
|
|
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
|
|
|
});
|
|
|
|
});
|