diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractInput.tsx index ef6bfcf5..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": @@ -49,7 +50,7 @@ export const ContractInput = ({ setForm, form, stateObjectKey, paramType }: Cont }; return ( -
+
{paramType.name && {paramType.name}} {paramType.type} diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx index f640c95e..a5a87f84 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/ContractReadMethods.tsx @@ -31,21 +31,29 @@ export const ContractReadMethods = ({ .sort((a, b) => (b.inheritedFrom ? b.inheritedFrom.localeCompare(a.inheritedFrom) : 1)); if (!functionsToDisplay.length) { - return Please select read methods from the sidebar.; + return ( +
+ Please select read methods from the sidebar. +
+ ); } return ( <> {functionsToDisplay.map(({ fn, inheritedFrom }) => ( -
+
-
))} diff --git a/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx b/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx index 0b2b2ba3..739e5fcc 100644 --- a/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx +++ b/packages/nextjs/components/scaffold-eth/Contract/ContractUI.tsx @@ -148,7 +148,7 @@ export const ContractUI = ({ className = "", initialContractData }: ContractUIPr

Read

-
+
Write

-
+
(b.inheritedFrom ? b.inheritedFrom.localeCompare(a.inheritedFrom) : 1)); if (!functionsToDisplay.length) { - return Please select write methods from the sidebar.; + return ( +
+ Please select write methods from the sidebar. +
+ ); } return ( <> {functionsToDisplay.map(({ fn, inheritedFrom }, idx) => ( -
+