diff options
author | Fabio Berger <me@fabioberger.com> | 2018-06-26 14:11:14 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-06-26 14:11:14 +0800 |
commit | 27670f4da679f5dbd3a3b399f14ba437184d2633 (patch) | |
tree | 064b746936595b2d55edbb336cff631e531431d0 /packages/contracts/test/asset_proxy/authorizable.ts | |
parent | e051743a3d9b92c8a5b275dc5843b98c37830b8c (diff) | |
download | dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.tar dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.tar.gz dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.tar.bz2 dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.tar.lz dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.tar.xz dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.tar.zst dexon-0x-contracts-27670f4da679f5dbd3a3b399f14ba437184d2633.zip |
Rename RevertReasons to RevertReason since singular enum names are more common
Diffstat (limited to 'packages/contracts/test/asset_proxy/authorizable.ts')
-rw-r--r-- | packages/contracts/test/asset_proxy/authorizable.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/contracts/test/asset_proxy/authorizable.ts b/packages/contracts/test/asset_proxy/authorizable.ts index badf50bfd..c2295dda6 100644 --- a/packages/contracts/test/asset_proxy/authorizable.ts +++ b/packages/contracts/test/asset_proxy/authorizable.ts @@ -1,5 +1,5 @@ import { BlockchainLifecycle } from '@0xproject/dev-utils'; -import { RevertReasons } from '@0xproject/types'; +import { RevertReason } from '@0xproject/types'; import { BigNumber } from '@0xproject/utils'; import * as chai from 'chai'; @@ -49,7 +49,7 @@ describe('Authorizable', () => { it('should throw if not called by owner', async () => { return expectRevertReasonOrAlwaysFailingTransactionAsync( authorizable.addAuthorizedAddress.sendTransactionAsync(notOwner, { from: notOwner }), - RevertReasons.OnlyContractOwner, + RevertReason.OnlyContractOwner, ); }); it('should allow owner to add an authorized address', async () => { @@ -67,7 +67,7 @@ describe('Authorizable', () => { ); return expectRevertReasonOrAlwaysFailingTransactionAsync( authorizable.addAuthorizedAddress.sendTransactionAsync(address, { from: owner }), - RevertReasons.TargetAlreadyAuthorized, + RevertReason.TargetAlreadyAuthorized, ); }); }); @@ -82,7 +82,7 @@ describe('Authorizable', () => { authorizable.removeAuthorizedAddress.sendTransactionAsync(address, { from: notOwner, }), - RevertReasons.OnlyContractOwner, + RevertReason.OnlyContractOwner, ); }); @@ -106,7 +106,7 @@ describe('Authorizable', () => { authorizable.removeAuthorizedAddress.sendTransactionAsync(address, { from: owner, }), - RevertReasons.TargetNotAuthorized, + RevertReason.TargetNotAuthorized, ); }); }); |