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');
|
||||
import latestTime from './helpers/latestTime'
|
||||
import {increaseTimeTo, duration} from './helpers/increaseTime'
|
||||
|
||||
@ -39,7 +39,7 @@ contract('DayLimit', function(accounts) {
|
||||
await dayLimit.attemptSpend(3);
|
||||
assert.fail('should have thrown before');
|
||||
} catch(error) {
|
||||
assertJump(error);
|
||||
assertRevert(error);
|
||||
}
|
||||
});
|
||||
|
||||
@ -52,7 +52,7 @@ contract('DayLimit', function(accounts) {
|
||||
await dayLimit.attemptSpend(3);
|
||||
assert.fail('should have thrown before');
|
||||
} catch(error) {
|
||||
assertJump(error);
|
||||
assertRevert(error);
|
||||
}
|
||||
spentToday = await dayLimit.spentToday();
|
||||
assert.equal(spentToday, 8);
|
||||
@ -72,7 +72,7 @@ contract('DayLimit', function(accounts) {
|
||||
await dayLimit.attemptSpend(3);
|
||||
assert.fail('should have thrown before');
|
||||
} catch(error) {
|
||||
assertJump(error);
|
||||
assertRevert(error);
|
||||
}
|
||||
spentToday = await dayLimit.spentToday();
|
||||
assert.equal(spentToday, 8);
|
||||
@ -95,7 +95,7 @@ contract('DayLimit', function(accounts) {
|
||||
await dayLimit.attemptSpend(3);
|
||||
assert.fail('should have thrown before');
|
||||
} catch(error) {
|
||||
assertJump(error);
|
||||
assertRevert(error);
|
||||
}
|
||||
spentToday = await dayLimit.spentToday();
|
||||
assert.equal(spentToday, 8);
|
||||
|
||||
Reference in New Issue
Block a user