aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/test/ts/token_transfer_proxy/auth.ts
diff options
context:
space:
mode:
authorAmir Bandeali <abandeali1@gmail.com>2017-12-05 08:58:15 +0800
committerAmir Bandeali <abandeali1@gmail.com>2017-12-13 07:02:04 +0800
commite6862e973983d478b7683425983f18b4680dd238 (patch)
tree973e558090eb66357ea63e63d748732961499e0b /packages/contracts/test/ts/token_transfer_proxy/auth.ts
parent7008e882c0508939da117cd90fe06e7006b85300 (diff)
downloaddexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.gz
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.bz2
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.lz
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.xz
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.tar.zst
dexon-sol-tools-e6862e973983d478b7683425983f18b4680dd238.zip
Fix errors with new testrpc version
Diffstat (limited to 'packages/contracts/test/ts/token_transfer_proxy/auth.ts')
-rw-r--r--packages/contracts/test/ts/token_transfer_proxy/auth.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/contracts/test/ts/token_transfer_proxy/auth.ts b/packages/contracts/test/ts/token_transfer_proxy/auth.ts
index 785fbc016..7c0a3d231 100644
--- a/packages/contracts/test/ts/token_transfer_proxy/auth.ts
+++ b/packages/contracts/test/ts/token_transfer_proxy/auth.ts
@@ -23,7 +23,7 @@ contract('TokenTransferProxy', (accounts: string[]) => {
describe('addAuthorizedAddress', () => {
it('should throw if not called by owner', async () => {
return expect(tokenTransferProxy.addAuthorizedAddress(notOwner, {from: notOwner}))
- .to.be.rejectedWith(constants.INVALID_OPCODE);
+ .to.be.rejectedWith(constants.REVERT);
});
it('should allow owner to add an authorized address', async () => {
@@ -36,14 +36,14 @@ contract('TokenTransferProxy', (accounts: string[]) => {
it('should throw if owner attempts to authorize a duplicate address', async () => {
return expect(tokenTransferProxy.addAuthorizedAddress(authorized, {from: owner}))
- .to.be.rejectedWith(constants.INVALID_OPCODE);
+ .to.be.rejectedWith(constants.REVERT);
});
});
describe('removeAuthorizedAddress', () => {
it('should throw if not called by owner', async () => {
return expect(tokenTransferProxy.removeAuthorizedAddress(authorized, {from: notOwner}))
- .to.be.rejectedWith(constants.INVALID_OPCODE);
+ .to.be.rejectedWith(constants.REVERT);
});
it('should allow owner to remove an authorized address', async () => {
@@ -57,7 +57,7 @@ contract('TokenTransferProxy', (accounts: string[]) => {
it('should throw if owner attempts to remove an address that is not authorized', async () => {
return expect(tokenTransferProxy.removeAuthorizedAddress(notAuthorized, {from: owner}))
- .to.be.rejectedWith(constants.INVALID_OPCODE);
+ .to.be.rejectedWith(constants.REVERT);
});
});