diff --git a/content/pages/edit.json b/content/pages/edit.json index 13d6089c5..ac8e21e0d 100644 --- a/content/pages/edit.json +++ b/content/pages/edit.json @@ -20,6 +20,15 @@ "rows": 10, "required": true }, + { + "name": "price", + "label": "New Price", + "type": "number", + "min": "1", + "placeholder": "0", + "help": "Enter a new price.", + "required": true + }, { "name": "links", "label": "Sample file", diff --git a/package-lock.json b/package-lock.json index 81941ee59..cc1026ce2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18101,7 +18101,7 @@ } }, "ethereumjs-abi": { - "version": "git+https://github.com/ethereumjs/ethereumjs-abi.git#1a27c59c15ab1e95ee8e5c4ed6ad814c49cc439e", + "version": "git+https://github.com/ethereumjs/ethereumjs-abi.git#1ce6a1d64235fabe2aaf827fd606def55693508f", "from": "git+https://github.com/ethereumjs/ethereumjs-abi.git", "requires": { "bn.js": "^4.11.8", diff --git a/src/@types/MetaData.d.ts b/src/@types/MetaData.d.ts index 9143190ad..0d8d583d0 100644 --- a/src/@types/MetaData.d.ts +++ b/src/@types/MetaData.d.ts @@ -61,6 +61,7 @@ export interface MetadataEditForm { name: string description: string timeout: string + price?: number links?: string | EditableMetadataLinks[] } diff --git a/src/components/atoms/Input/InputElement.tsx b/src/components/atoms/Input/InputElement.tsx index 71f515bc2..89a67a658 100644 --- a/src/components/atoms/Input/InputElement.tsx +++ b/src/components/atoms/Input/InputElement.tsx @@ -91,6 +91,7 @@ export default function InputElement({ id={slugify(option)} type={type} name={name} + checked={props.defaultChecked} {...props} />