Inline _forceSetMostRecentCumulativeRewardEpoch

This commit is contained in:
Amir Bandeali
2019-09-25 11:03:26 -07:00
parent 25cb1c1138
commit 4440075425
3 changed files with 3 additions and 49 deletions

View File

@@ -36,12 +36,7 @@ export class CumulativeRewardTrackingSimulation {
private static _extractTestLogs(txReceiptLogs: DecodedLogs): TestLog[] {
const logs = [];
for (const log of txReceiptLogs) {
if (log.event === TestCumulativeRewardTrackingEvents.SetMostRecentCumulativeReward) {
logs.push({
event: log.event,
epoch: log.args.epoch.toNumber(),
});
} else if (log.event === TestCumulativeRewardTrackingEvents.SetCumulativeReward) {
if (log.event === TestCumulativeRewardTrackingEvents.SetCumulativeReward) {
logs.push({
event: log.event,
epoch: log.args.epoch.toNumber(),