aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2018-01-26 18:39:31 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2018-01-30 23:01:37 +0800
commit9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c (patch)
treeb8c0c1efc2558b750a4ccfead3bd5d4e19bf0d08 /packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
parent6f13d107c4ca90049249e44a90b45cac2b490762 (diff)
downloaddexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.tar
dexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.tar.gz
dexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.tar.bz2
dexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.tar.lz
dexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.tar.xz
dexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.tar.zst
dexon-sol-tools-9d62e5fb6f0dc6dc451604f02fb4374a36fcac3c.zip
Use an enum for contract name
Diffstat (limited to 'packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts')
-rw-r--r--packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts b/packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
index e8261b6f1..826815265 100644
--- a/packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
+++ b/packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts
@@ -9,7 +9,7 @@ import { artifacts } from '../util/artifacts';
import { constants } from '../util/constants';
import { crypto } from '../util/crypto';
import { MultiSigWrapper } from '../util/multi_sig_wrapper';
-import { SubmissionContractEventArgs, TransactionDataParams } from '../util/types';
+import { ContractName, SubmissionContractEventArgs, TransactionDataParams } from '../util/types';
import { chaiSetup } from './utils/chai_setup';
import { deployer } from './utils/deployer';
@@ -52,11 +52,11 @@ describe('MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress', () => {
.slice(0, 20)
.toString('hex')}`;
const initialOwner = accounts[0];
- tokenTransferProxy = await deployer.deployAsync('TokenTransferProxy');
+ tokenTransferProxy = await deployer.deployAsync(ContractName.TokenTransferProxy);
await tokenTransferProxy.addAuthorizedAddress(authorizedAddress, {
from: initialOwner,
});
- multiSig = await deployer.deployAsync('MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress', [
+ multiSig = await deployer.deployAsync(ContractName.MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress, [
owners,
requiredApprovals,
SECONDS_TIME_LOCKED,
@@ -106,7 +106,7 @@ describe('MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress', () => {
});
it('should throw if tx destination is not the tokenTransferProxy', async () => {
- const invalidTokenTransferProxy = await deployer.deployAsync('TokenTransferProxy');
+ const invalidTokenTransferProxy = await deployer.deployAsync(ContractName.TokenTransferProxy);
const invalidDestination = invalidTokenTransferProxy.address;
const dataParams: TransactionDataParams = {
name: 'removeAuthorizedAddress',