embark/dapps/tests/app/test/interface_spec.js
Michael Bradley b736ebefcd refactor: initial steps toward 5.0.0-alpha.0 (#1856)
BREAKING CHANGE:

There are more than several breaking changes, including DApp configuration for
accounts.
2019-08-30 16:50:20 -04:00

25 lines
574 B
JavaScript

/*global contract, config, it*/
const assert = require('assert');
const AnotherStorage = require('Embark/contracts/AnotherStorage');
config({
contracts: {
deploy: {
AnotherStorage: {
args: ['$ERC20']
}
}
}
});
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();
assert.strictEqual(result.toString(), '0x0000000000000000000000000000000000000000');
});
});