Skip to content

Commit

Permalink
fix: input impreovements
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Mar 15, 2024
1 parent 549f122 commit 0619335
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
15 changes: 15 additions & 0 deletions components/FunctionComposer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,21 @@ export const FunctionComposer = ({
<TextField margin="normal" {...props} />
</Tooltip>
);
} else if (input.type === "bool") {
return (
<Tooltip arrow title="Use 1 and 0 for 'true' and 'false'">
<TextField margin="normal" {...props} />
</Tooltip>
);
} else if (input.type === "bytes") {
return (
<Tooltip
arrow
title="Hexadecimal value - use '0x' if empty"
>
<TextField margin="normal" {...props} />
</Tooltip>
);
} else {
return <TextField margin="normal" {...props} />;
}
Expand Down
2 changes: 2 additions & 0 deletions hooks/useIframeUrl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export const useIframeUrl = () => {
const reset = () => {
if (baseIframeUrl && iframeUrl !== baseIframeUrl) {
setIframeUrl(baseIframeUrl);
} else if (!baseIframeUrl) {
setIframeUrl("");
}
};

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"build": "next build && next export",
"start": "next start",
"chainlist": "node scripts/buildChainList",
"chainlist:update": "git submodule update && yarn chainlist",
"chainlist:update": "git submodule update --remote; cd config/chainlist; git pull origin master; cd ../../; yarn chainlist",
"explorer": "node scripts/getExplorerInfo && yarn chainlist",
"update": "yarn chainlist:update && yarn explorer"
},
Expand Down

0 comments on commit 0619335

Please sign in to comment.