Skip to content

Commit

Permalink
feat: convert hex values
Browse files Browse the repository at this point in the history
  • Loading branch information
xtools-at committed Oct 24, 2023
1 parent 283f20e commit a48cace
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions components/ResultDialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,29 @@ export const ResultDialog = ({
const output = [];

for (let key in args) {
if (key === "_isBigNumber") {
continue;
}

if (key === "_hex") {
const bnString = BigNumber.from(args[key]).toString();

output.push(
<ListItemButton
sx={{
overflow: "auto",
}}
key={"BigNumber"}
onClick={() => copyText(bnString)}
>
<ListItemText
primary={bnString}
secondary={"BigNumber"}
/>
</ListItemButton>
);
}

output.push(
<ListItemButton
sx={{
Expand Down

0 comments on commit a48cace

Please sign in to comment.