Removed unused comments

pull/5370/head
ioedeveloper 4 months ago
parent d5309bf905
commit f62536fced
  1. 16
      apps/circuit-compiler/src/app/components/setupExports.tsx
  2. 14
      apps/circuit-compiler/src/app/reducers/state.ts
  3. 4
      apps/circuit-compiler/src/app/types/index.ts

@ -8,14 +8,6 @@ import { runSetupAndExport } from "../actions"
export function SetupExports () {
const circuitApp = useContext(CircuitAppContext)
// const handleRandomTextChange = (value: string) => {
// circuitApp.dispatch({ type: 'SET_RANDOM_TEXT', payload: value })
// }
// const handleRandomBeaconChange = (value: string) => {
// circuitApp.dispatch({ type: 'SET_RANDOM_BEACON', payload: value })
// }
const handleRunSetup = async () => {
try {
circuitApp.dispatch({ type: 'SET_COMPILER_STATUS', payload: 'exporting' })
@ -96,14 +88,6 @@ export function SetupExports () {
</select>
</div>
</CustomTooltip>
{/* <label className="circuit_inner_label form-check-label" htmlFor="circuitRandomText">
<FormattedMessage id="circuit.randomText" />
</label>
<input className="form-control m-0 txinput mb-1" placeholder="My First Contribution" />
<label className="circuit_inner_label form-check-label" htmlFor="circuitRandomBeacon">
<FormattedMessage id="circuit.randomBeacon" />
</label>
<input className="form-control m-0 txinput mb-1" placeholder="0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" /> */}
<div className="mt-2 custom-control custom-checkbox">
<input
className="custom-control-input"

@ -32,8 +32,6 @@ export const appInitialState: AppState = {
blake2bHash: null
}],
ptauValue: "final_14.ptau",
// randomText: "",
// randomBeacon: "0102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20",
exportVerificationContract: true,
exportVerificationKey: true
}
@ -119,18 +117,6 @@ export const appReducer = (state = appInitialState, action: Actions): AppState =
ptauValue: action.payload
}
// case 'SET_RANDOM_TEXT':
// return {
// ...state,
// randomText: action.payload
// }
// case 'SET_RANDOM_BEACON':
// return {
// ...state,
// randomBeacon: action.payload
// }
case 'SET_EXPORT_VERIFICATION_CONTRACT':
return {
...state,

@ -35,8 +35,6 @@ export interface ActionPayloadTypes {
SET_FILE_PATH_TO_ID: Record<number, string>,
SET_PROVING_SCHEME: ProvingScheme,
SET_PTAU_VALUE: string,
// SET_RANDOM_TEXT: string,
// SET_RANDOM_BEACON: string
SET_EXPORT_VERIFICATION_CONTRACT: boolean,
SET_EXPORT_VERIFICATION_KEY: boolean,
SET_SETUP_EXPORT_STATUS: SetupExportStatus
@ -65,8 +63,6 @@ export interface AppState {
provingScheme: ProvingScheme,
ptauList: Array<PtauFile>,
ptauValue: string,
// randomText: string,
// randomBeacon: string,
exportVerificationContract: boolean,
exportVerificationKey: boolean
}

Loading…
Cancel
Save