Skip to content

Commit

Permalink
fix: fix codeHashOrCodeHashIndex in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed Oct 22, 2019
1 parent 395c503 commit bf396e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/neuron-ui/src/components/Addresses/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ const Addresses = ({
? ckbCore.utils.bech32Address(addr.identifier, {
prefix: ckbCore.utils.AddressPrefix.Mainnet,
type: ckbCore.utils.AddressType.HashIdx,
codeHashIndex: '0x00',
codeHashOrCodeHashIndex: '0x00',
}) || ''
: addr.address,
}))}
Expand Down
4 changes: 2 additions & 2 deletions packages/neuron-ui/src/components/Transaction/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const Transaction = () => {
const address = ckbCore.utils.bech32Address(input.lock.args, {
prefix: addressPrefix,
type: ckbCore.utils.AddressType.HashIdx,
codeHashIndex: '0x00',
codeHashOrCodeHashIndex: '0x00',
})
if (column && (column.calculatedWidth || 0) < 450) {
return <CompactAddress address={address} />
Expand Down Expand Up @@ -129,7 +129,7 @@ const Transaction = () => {
const address = ckbCore.utils.bech32Address(output.lock.args, {
prefix: addressPrefix,
type: ckbCore.utils.AddressType.HashIdx,
codeHashIndex: '0x00',
codeHashOrCodeHashIndex: '0x00',
})
if (column && (column.calculatedWidth || 0) < 450) {
return <CompactAddress address={address} />
Expand Down

0 comments on commit bf396e5

Please sign in to comment.