Rename GrantableToken to VestedToken
This commit is contained in:
@ -1,11 +0,0 @@
|
||||
pragma solidity ^0.4.4;
|
||||
|
||||
import '../token/GrantableToken.sol';
|
||||
|
||||
// mock class using StandardToken
|
||||
contract GrantableTokenMock is GrantableToken {
|
||||
function GrantableTokenMock(address initialAccount, uint initialBalance) {
|
||||
balances[initialAccount] = initialBalance;
|
||||
totalSupply = initialBalance;
|
||||
}
|
||||
}
|
||||
11
contracts/test-helpers/VestedTokenMock.sol
Normal file
11
contracts/test-helpers/VestedTokenMock.sol
Normal file
@ -0,0 +1,11 @@
|
||||
pragma solidity ^0.4.4;
|
||||
|
||||
import '../token/VestedToken.sol';
|
||||
|
||||
// mock class using StandardToken
|
||||
contract VestedTokenMock is VestedToken {
|
||||
function VestedTokenMock(address initialAccount, uint initialBalance) {
|
||||
balances[initialAccount] = initialBalance;
|
||||
totalSupply = initialBalance;
|
||||
}
|
||||
}
|
||||
@ -2,7 +2,7 @@ pragma solidity ^0.4.8;
|
||||
|
||||
import "./StandardToken.sol";
|
||||
|
||||
contract GrantableToken is StandardToken {
|
||||
contract VestedToken is StandardToken {
|
||||
struct TokenGrant {
|
||||
address granter;
|
||||
uint256 value;
|
||||
@ -1,7 +1,7 @@
|
||||
const assertJump = require('./helpers/assertJump');
|
||||
const timer = require('./helpers/timer');
|
||||
|
||||
contract('GrantableToken', function(accounts) {
|
||||
contract('VestedToken', function(accounts) {
|
||||
let token = null
|
||||
let now = 0
|
||||
|
||||
@ -11,7 +11,7 @@ contract('GrantableToken', function(accounts) {
|
||||
const receiver = accounts[1]
|
||||
|
||||
beforeEach(async () => {
|
||||
token = await GrantableTokenMock.new(granter, 100);
|
||||
token = await VestedTokenMock.new(granter, 100);
|
||||
now = +new Date()/1000;
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user