Skip to content

Commit

Permalink
fix(explorer): display nested inputs (#3266)
Browse files Browse the repository at this point in the history
Co-authored-by: Kevin Ingersoll <[email protected]>
  • Loading branch information
karooolis and holic authored Oct 8, 2024
1 parent 9a2e359 commit 2c92401
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/hip-rings-rule.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@latticexyz/explorer": patch
---

Fixed inputs display in the transactions table row.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export function TransactionTableRow({ row }: { row: Row<WatchedTransaction> }) {
{data.functionData?.args?.map((arg, idx) => (
<div key={idx} className="flex">
<span className="flex-shrink-0 text-xs text-white/60">arg {idx + 1}:</span>
<span className="ml-2 text-xs">{String(arg)}</span>
<span className="ml-2 whitespace-pre-wrap text-xs">
{typeof arg === "object" && arg !== null ? JSON.stringify(arg, null, 2) : String(arg)}
</span>
</div>
))}
</div>
Expand Down

0 comments on commit 2c92401

Please sign in to comment.