Fix tests for revokable/non burn vesting calendar
This commit is contained in:
@ -23,12 +23,12 @@ contract('VestedToken', function(accounts) {
|
|||||||
assert.equal(await token.transferableTokens(receiver, now), tokenAmount);
|
assert.equal(await token.transferableTokens(receiver, now), tokenAmount);
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('getting a token grant', async () => {
|
describe('getting a revokable/non-burnable token grant', async () => {
|
||||||
const cliff = 10000
|
const cliff = 10000
|
||||||
const vesting = 20000 // seconds
|
const vesting = 20000 // seconds
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
await token.grantVestedTokens(receiver, tokenAmount, now, now + cliff, now + vesting, { from: granter })
|
await token.grantVestedTokens(receiver, tokenAmount, now, now + cliff, now + vesting, true, false, { from: granter })
|
||||||
})
|
})
|
||||||
|
|
||||||
it('tokens are received', async () => {
|
it('tokens are received', async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user