From e9739319c683357ed14c0ffa2f931223eb0b8ec8 Mon Sep 17 00:00:00 2001 From: tokodev Date: Thu, 8 Feb 2024 12:17:33 +0100 Subject: [PATCH] Add ENS placeholder for addresses --- .../nextjs/components/scaffold-eth/Contract/ContractInput.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx index 9aea2398..89f0ea5c 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx @@ -32,7 +32,8 @@ export const ContractInput = ({ setForm, form, stateObjectKey, paramType }: Cont const renderInput = () => { switch (paramType.type) { case "address": - return ; + const addressInputProps = { ...inputProps, placeholder: "address or ENS" }; + return ; case "bytes32": return ; case "bytes":