diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 21:09:49 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2018-01-30 23:01:37 +0800 |
commit | 52ad16b9200ff892b0880891e467e2b371bf8220 (patch) | |
tree | 409aed8784a35a461b41642da4b12d4b48521001 /packages/contracts | |
parent | 5a4c0bff6a54f605040141b7b1a64c6a33a339b0 (diff) | |
download | dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.tar dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.tar.gz dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.tar.bz2 dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.tar.lz dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.tar.xz dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.tar.zst dexon-sol-tools-52ad16b9200ff892b0880891e467e2b371bf8220.zip |
Remove authorized address magic from tests
Diffstat (limited to 'packages/contracts')
-rw-r--r-- | packages/contracts/test/multi_sig_with_time_lock_except_remove_auth_addr.ts | 9 |
1 files changed, 1 insertions, 8 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 06f30ffdc..f6b7c1d53 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 @@ -43,14 +43,7 @@ describe('MultiSigWalletWithTimeLockExceptRemoveAuthorizedAddress', () => { before(async () => { const accounts = await web3Wrapper.getAvailableAddressesAsync(); owners = [accounts[0], accounts[1]]; - authorizedAddress = `0x${crypto - .solSHA3([accounts[0]]) - .slice(0, 20) - .toString('hex')}`; - unauthorizedAddress = `0x${crypto - .solSHA3([accounts[1]]) - .slice(0, 20) - .toString('hex')}`; + [authorizedAddress, unauthorizedAddress] = accounts; const initialOwner = accounts[0]; tokenTransferProxy = await deployer.deployAsync(ContractName.TokenTransferProxy); await tokenTransferProxy.addAuthorizedAddress(authorizedAddress, { |