diff --git a/.changeset/real-zoos-jump.md b/.changeset/real-zoos-jump.md new file mode 100644 index 00000000..2164ed23 --- /dev/null +++ b/.changeset/real-zoos-jump.md @@ -0,0 +1,5 @@ +--- +'@smartcontractkit/operator-ui': minor +--- + +chainconfg: make admin address optional diff --git a/src/components/Form/ChainConfigurationForm.test.tsx b/src/components/Form/ChainConfigurationForm.test.tsx index 225189e6..6c4c5826 100644 --- a/src/components/Form/ChainConfigurationForm.test.tsx +++ b/src/components/Form/ChainConfigurationForm.test.tsx @@ -35,9 +35,6 @@ describe('ChainConfigurationForm', () => { expect(await findByTestId('accountAddr-helper-text')).toHaveTextContent( 'Required', ) - expect(await findByTestId('adminAddr-helper-text')).toHaveTextContent( - 'Required', - ) }) it('validates OCR input', async () => { diff --git a/src/components/Form/ChainConfigurationForm.tsx b/src/components/Form/ChainConfigurationForm.tsx index 39b1410d..03030d8a 100644 --- a/src/components/Form/ChainConfigurationForm.tsx +++ b/src/components/Form/ChainConfigurationForm.tsx @@ -57,7 +57,7 @@ const ValidationSchema = Yup.object().shape({ chainType: Yup.string().required('Required'), accountAddr: Yup.string().required('Required'), accountAddrPubKey: Yup.string().nullable(), - adminAddr: Yup.string().required('Required'), + adminAddr: Yup.string(), ocr1Multiaddr: Yup.string() .when(['ocr1Enabled', 'ocr1IsBootstrap'], { is: (enabled: boolean, isBootstrap: boolean) => enabled && isBootstrap, @@ -327,7 +327,6 @@ export const ChainConfigurationForm = withStyles(styles)( id="adminAddr" name="adminAddr" label="Admin Address" - required fullWidth helperText="The address used for LINK payments" FormHelperTextProps={{