mirror of
https://github.com/status-im/snt-gas-relay.git
synced 2025-01-30 08:07:31 +00:00
28 lines
721 B
JavaScript
28 lines
721 B
JavaScript
|
const IdentityFactory = require('Embark/contracts/IdentityFactory');
|
||
|
const IdentityGasRelay = require('Embark/contracts/IdentityGasRelay');
|
||
|
|
||
|
|
||
|
var contractsConfig = {
|
||
|
"IdentityFactory": {
|
||
|
|
||
|
}
|
||
|
};
|
||
|
|
||
|
config({ contracts: contractsConfig });
|
||
|
|
||
|
contract('IdentityFactory', function () {
|
||
|
|
||
|
describe('createIdentity()', function () {
|
||
|
it('should create an IdentityGasRelay', async function () {
|
||
|
let result = await IdentityFactory.createIdentity();
|
||
|
createdIdentity = new web3.eth.Contract(
|
||
|
IdentityGasRelay.options.jsonInterface,
|
||
|
result.events.IdentityCreated.returnValues.instance
|
||
|
);
|
||
|
|
||
|
assert(await createdIdentity.methods.nonce().call(), 0);
|
||
|
});
|
||
|
|
||
|
});
|
||
|
});
|