Skip to content

Commit aa34515

Browse files
committed
fix(neuron-ui): fix the type of script.args from string[] to string
1 parent bbe3179 commit aa34515

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/neuron-ui/src/components/Transaction/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ const Transaction = () => {
9595
return null
9696
}
9797
try {
98-
const address = ckbCore.utils.bech32Address(output.lock.args[0], {
98+
const address = ckbCore.utils.bech32Address(output.lock.args, {
9999
prefix: addressPrefix,
100100
type: ckbCore.utils.AddressType.HashIdx,
101101
codeHashIndex: '0x00',

packages/neuron-ui/src/types/App/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ declare namespace State {
1414
interface DetailedOutput {
1515
capacity: string
1616
lock: {
17-
args: string[]
17+
args: string
1818
codeHash: string
1919
}
2020
lockHash: string

0 commit comments

Comments
 (0)