Skip to content

Commit

Permalink
fix outPoint index type
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Apr 7, 2024
1 parent b37f458 commit ce92c19
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/order/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,7 @@ export const calculateTransactionFee = (txSize: number): bigint => {
}

export const deserializeOutPoints = (outPointHexList: Hex[]) => {
const outPoints = outPointHexList.map(outPoint => {
const op = blockchain.OutPoint.unpack(outPoint)
return {
txHash: op.txHash,
index: append0x(op.index.toString(16)),
} as CKBComponents.OutPoint
})
const outPoints = outPointHexList.map(outPoint => blockchain.OutPoint.unpack(outPoint))
return outPoints
}

Expand Down

0 comments on commit ce92c19

Please sign in to comment.