Skip to content

Commit

Permalink
refactor: Remove witnessIndex for ckb demo
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jul 3, 2024
1 parent c48c154 commit 972d3b9
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions examples/ckb-demo/src/pages/SignCkbRawTx/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export function SignCkbRawTx() {
toast({ status: 'error', title: 'Xudt type script cannot be empty' })
return
}
const { rawTx, listPackage, witnessIndex } = await buildMakerTx({
const { rawTx, listPackage } = await buildMakerTx({
collector: dexCollector,
// @ts-ignore
joyID: joyID as DexJoyIDConfig,
Expand All @@ -145,9 +145,7 @@ export function SignCkbRawTx() {
status: 'info',
title: `List package is: ${listPackage / BigInt(10 ** 8)}CKB`,
})
const signedTx = await signRawTransaction(rawTx, ckbAddress!, {
witnessIndex,
})
const signedTx = await signRawTransaction(rawTx, ckbAddress!)
const hash = await collector.getCkb().rpc.sendTransaction(signedTx)
setListHash(hash)
}
Expand Down

0 comments on commit 972d3b9

Please sign in to comment.