-
Notifications
You must be signed in to change notification settings - Fork 619
[Dashboard] Add some informative badges to the Explorer #5138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| "use client"; | ||
|
|
||
| import { Badge } from "@/components/ui/badge"; | ||
| import { InlineCode } from "@/components/ui/inline-code"; | ||
| import { ToolTipLabel } from "@/components/ui/tooltip"; | ||
| import { | ||
|
|
@@ -416,7 +417,15 @@ export const InteractiveAbiFunction: React.FC<InteractiveAbiFunctionProps> = ({ | |
| ) : formattedResponseData ? ( | ||
| <> | ||
| <Divider /> | ||
| <Heading size="label.sm">Output</Heading> | ||
| <div className="flex flex-row items-center gap-2"> | ||
| <Heading size="label.sm">Output</Heading> | ||
| {/* Show the Solidity type of the function's output */} | ||
| {abiFunction.outputs.length > 0 && ( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this the right way to retrieve a function's output? Since it's an array I'm not sure about my code here.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. cc. @jnsdls
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yes, a function MAY have multiple outputs, but usually this should be fine |
||
| <Badge variant="default"> | ||
| {abiFunction.outputs[0]?.type} | ||
| </Badge> | ||
| )} | ||
| </div> | ||
| <CodeBlock | ||
| w="full" | ||
| position="relative" | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure how helpful the function selector is, Deferring this to @jnsdls to decide whether this should be added or not
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
feels somewhat not that useful but also doesn't hurt - let's try it for a bit