Update to testrpc 6.0.1 and test fixes for revert opcode.
This commit is contained in:
committed by
Alejandro Santander
parent
b9cbea1c9c
commit
c29dd086d3
@ -1,5 +1,5 @@
|
||||
'use strict';
|
||||
const assertJump = require('./helpers/assertJump');
|
||||
const assertRevert = require('./helpers/assertRevert');
|
||||
|
||||
var Ownable = artifacts.require('../contracts/ownership/Ownable.sol');
|
||||
|
||||
@ -31,7 +31,7 @@ contract('Ownable', function(accounts) {
|
||||
await ownable.transferOwnership(other, {from: other});
|
||||
assert.fail('should have thrown before');
|
||||
} catch(error) {
|
||||
assertJump(error);
|
||||
assertRevert(error);
|
||||
}
|
||||
});
|
||||
|
||||
@ -41,7 +41,7 @@ contract('Ownable', function(accounts) {
|
||||
await ownable.transferOwnership(null, {from: originalOwner});
|
||||
assert.fail();
|
||||
} catch(error) {
|
||||
assertJump(error);
|
||||
assertRevert(error);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user