You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
475 B
14 lines
475 B
/* eslint-env node, mocha */
|
|
/* global artifacts, contract, assert */
|
|
|
|
const Owned = artifacts.require('./Owned.sol');
|
|
const Proxy = artifacts.require('./Proxy.sol');
|
|
|
|
contract('Proxy', accounts => {
|
|
it('Should compile and run when one contract inherits from another', () => Owned.deployed()
|
|
.then(() => Proxy.deployed())
|
|
.then(instance => instance.isOwner.call({
|
|
from: accounts[0],
|
|
}))
|
|
.then(val => assert.equal(val, true)));
|
|
});
|
|
|