Skip to content

add const Stage

Michiya requested to merge constStage into master

Refactor Merge Request

Related Issue

Resolves #52 (closed)

Description of Refactor

Add const Stage object in js/utils.js that reflects the enum Stage in contracts/AssessmentData.sol

Code

export const Stage = Object.freeze({
  None: 0,
  Called: 1,
  Confirmed: 2,
  Committed: 3,
  Done: 4,
  Burned: 5,
  Dissent: 6
})

Related Tasks

  • add const Stage object into js/utils.js
  • update enum in AssessmentDataInternal --> add Dissent
  • update references to stages in tests --> have them reference the Stage object in js/utils.js

Edited by Michiya

Merge request reports