diff --git a/explorer/src/components/instruction/token/TokenDetailsCard.tsx b/explorer/src/components/instruction/token/TokenDetailsCard.tsx index e96974b848..61b28f63ca 100644 --- a/explorer/src/components/instruction/token/TokenDetailsCard.tsx +++ b/explorer/src/components/instruction/token/TokenDetailsCard.tsx @@ -132,6 +132,24 @@ function TokenInstruction(props: InfoProps) { let value = props.info[key]; if (value === undefined) continue; + // Flatten lists of public keys + if (Array.isArray(value) && value.every((v) => v instanceof PublicKey)) { + for (let i = 0; i < value.length; i++) { + let publicKey = value[i]; + let label = `${key.charAt(0).toUpperCase() + key.slice(1)} - #${i + 1}`; + + attributes.push( + + {label} + +
+ + + ); + } + continue; + } + if (key === "tokenAmount") { key = "amount"; value = (value as TokenAmountUi).amount;