Skip to content

Commit

Permalink
fix(neuron-ui): fix the type of script.args from string[] to string
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Oct 11, 2019
1 parent bbe3179 commit aa34515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ const Transaction = () => {
return null
}
try {
const address = ckbCore.utils.bech32Address(output.lock.args[0], {
const address = ckbCore.utils.bech32Address(output.lock.args, {
prefix: addressPrefix,
type: ckbCore.utils.AddressType.HashIdx,
codeHashIndex: '0x00',
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/types/App/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare namespace State {
interface DetailedOutput {
capacity: string
lock: {
args: string[]
args: string
codeHash: string
}
lockHash: string
Expand Down

0 comments on commit aa34515

Please sign in to comment.