diff --git a/packages/neuron-ui/src/components/Transaction/index.tsx b/packages/neuron-ui/src/components/Transaction/index.tsx index ecd72826d1..aa96ecdf9d 100644 --- a/packages/neuron-ui/src/components/Transaction/index.tsx +++ b/packages/neuron-ui/src/components/Transaction/index.tsx @@ -189,11 +189,13 @@ const Transaction = () => { Outputs ({ - ...output, - index, - capacity: `${shannonToCKBFormatter(output.capacity)} CKB`, - }))} + items={transaction.outputs + .map(output => ({ + ...output, + index: output.outPoint.index, + capacity: `${shannonToCKBFormatter(output.capacity)} CKB`, + })) + .sort((o1, o2) => +o1.index - +o2.index)} columns={outputColumns} checkboxVisibility={CheckboxVisibility.hidden} compact diff --git a/packages/neuron-ui/src/types/App/index.d.ts b/packages/neuron-ui/src/types/App/index.d.ts index 987284cbd1..2d68ddf637 100644 --- a/packages/neuron-ui/src/types/App/index.d.ts +++ b/packages/neuron-ui/src/types/App/index.d.ts @@ -33,11 +33,8 @@ declare namespace State { } lockHash: string outPoint: { - blockHash: string | null - cell: { - index: string - txHash: string - } + index: string + txHash: string } }[] witnesses: string[]