We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 601ca8f commit d1ade4cCopy full SHA for d1ade4c
packages/nextjs/app/blockexplorer/_components/AddressCodeTab.tsx
@@ -4,7 +4,9 @@ type AddressCodeTabProps = {
4
};
5
6
export const AddressCodeTab = ({ bytecode, assembly }: AddressCodeTabProps) => {
7
- const formattedAssembly = assembly.split(" ").join("\n");
+ const formattedAssembly = Array.from(assembly.matchAll(/\w+( 0x[a-fA-F0-9]+)?/g))
8
+ .map(it => it[0])
9
+ .join("\n");
10
11
return (
12
<div className="flex flex-col gap-3 p-4">
0 commit comments