Fix errors with new testrpc version

This commit is contained in:
Amir Bandeali
2017-12-04 16:58:15 -08:00
parent 7008e882c0
commit e6862e9739
8 changed files with 45 additions and 44 deletions

View File

@@ -46,7 +46,7 @@ contract('TokenTransferProxy', (accounts: string[]) => {
describe('transferFrom', () => {
it('should throw when called by an unauthorized address', async () => {
expect(tokenTransferProxy.transferFrom(rep.address, accounts[0], accounts[1], 1000, {from: notAuthorized}))
.to.be.rejectedWith(constants.INVALID_OPCODE);
.to.be.rejectedWith(constants.REVERT);
});
it('should allow an authorized address to transfer', async () => {