Update to testrpc 6.0.1 and test fixes for revert opcode.

This commit is contained in:
Ben Burns
2017-11-02 23:10:32 -04:00
committed by Alejandro Santander
parent b9cbea1c9c
commit c29dd086d3
23 changed files with 78 additions and 73 deletions

View File

@ -1,5 +1,5 @@
'use strict';
const assertJump = require('./helpers/assertJump');
const assertRevert = require('./helpers/assertRevert');
var Claimable = artifacts.require('../contracts/ownership/Claimable.sol');
@ -28,7 +28,7 @@ contract('Claimable', function(accounts) {
await claimable.claimOwnership({from: accounts[2]});
assert.fail('should have thrown before');
} catch(error) {
assertJump(error);
assertRevert(error);
}
});
@ -40,7 +40,7 @@ contract('Claimable', function(accounts) {
await claimable.transferOwnership(other, {from: other});
assert.fail('should have thrown before');
} catch(error) {
assertJump(error);
assertRevert(error);
}
});