diff --git a/.changeset/itchy-bikes-kick.md b/.changeset/itchy-bikes-kick.md new file mode 100644 index 000000000..ccdde75b1 --- /dev/null +++ b/.changeset/itchy-bikes-kick.md @@ -0,0 +1,5 @@ +--- +"build-lz-options": patch +--- + +Ensure address is valid diff --git a/packages/build-lz-options/src/utilities/prompts.ts b/packages/build-lz-options/src/utilities/prompts.ts index eefda1c6b..6ecb262bc 100644 --- a/packages/build-lz-options/src/utilities/prompts.ts +++ b/packages/build-lz-options/src/utilities/prompts.ts @@ -96,6 +96,14 @@ const promptForNativeDropAddress: PromptObject<'nativeDropAddress'> = { name: 'nativeDropAddress', message: 'What native gas drop address (bytes32) do you want to set?', initial: makeBytes32(), + validate: (str: string) => { + try { + makeBytes32(str) + return true + } catch (_e) { + return false + } + }, } const promptForWorkerType = () =>