Skip to content

Commit

Permalink
fix: Allow 2000 keys to be created.
Browse files Browse the repository at this point in the history
  • Loading branch information
richtera committed Aug 10, 2023
1 parent f211e1d commit 616a3c6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/react/components/KeyConfigurationWizard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const KeyConfigurationWizard: FC<Props> = (props): ReactElement => {
const validateInputs = () => {
let isError = false;

if (props.numberOfKeys < 1 || props.numberOfKeys > 1000) {
if (props.numberOfKeys < 1 || props.numberOfKeys > 2000) {
setNumberOfKeysError(true);
isError = true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/KeyGeneratioinFlow/0-KeyInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const KeyInputs = (props: GenerateKeysProps) => {
type="number"
value={props.numberOfKeys}
onChange={updateNumberOfKeys}
InputProps={{ inputProps: { min: 1, max: 1000 } }}
InputProps={{ inputProps: { min: 1, max: 2000 } }}
error={props.numberOfKeysError}
helperText={ props.numberOfKeysError ? errors.NUMBER_OF_KEYS : ""}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/react/components/KeyGenerationFlow/0-KeyInputs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const KeyInputs = (props: GenerateKeysProps) => {
type="number"
value={props.numberOfKeys}
onChange={updateNumberOfKeys}
InputProps={{ inputProps: { min: 1, max: 1000 } }}
InputProps={{ inputProps: { min: 1, max: 2000 } }}
error={props.numberOfKeysError}
helperText={ props.numberOfKeysError ? errors.NUMBER_OF_KEYS : ""}
/>
Expand Down
2 changes: 1 addition & 1 deletion src/react/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { StepKey } from "./types";
export const errors = {
MNEMONIC_FORMAT: "Invalid format. Your Secret Recovery Phrase should be a 24 word list.",
MNEMONICS_DONT_MATCH: "The Secret Recovery Phrase you entered does not match what was given to you. Please try again.",
NUMBER_OF_KEYS: "Please input a number between 1 and 1000.",
NUMBER_OF_KEYS: "Please input a number between 1 and 2000.",
ADDRESS_FORMAT_ERROR: "Please enter a valid Ethereum address.",
WITHDRAW_ADDRESS_REQUIRED: "Please enter an Ethereum address.",
PASSWORD_STRENGTH: "Password must be at least 8 characters.",
Expand Down

0 comments on commit 616a3c6

Please sign in to comment.