MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / checkScheduleLog

Function checkScheduleLog

test/x_scheduled_checkpoints.js:814–819  ·  view source on GitHub ↗
(log, name, startTime, interval, timeUnit)

Source from the content-addressed store, hash-verified

812}
813
814function checkScheduleLog(log, name, startTime, interval, timeUnit) {
815 assert.equal(web3.utils.toAscii(log.args._name).replace(/\u0000/g, ""), web3.utils.toAscii(name));
816 assert.equal(log.args._startTime.toString(), startTime.toString());
817 assert.equal(log.args._interval.toString(), interval.toString());
818 assert.equal(log.args._timeUint.toString(), timeUnit.toString());
819}
820
821function checkSchedule(schedule, name, startTime, nextTime, interval, timeUnit, checkpoints, timestamps, periods) {
822 assert.equal(web3.utils.toAscii(schedule[0]).replace(/\u0000/g, ""), web3.utils.toAscii(name));

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected