Skip to content

Commit

Permalink
docs: Update witness index parameters comment
Browse files Browse the repository at this point in the history
  • Loading branch information
duanyytop committed Jun 24, 2024
1 parent 59c940a commit 600da16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/ckb/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ export const initConfig = (config?: CkbDappConfig): CkbDappConfig => {

export const getConfig = (): CkbDappConfig => internalDappConfig

// The witnessIndexes represents the positions of the JoyID cells in inputs, the default value is [0..inputs.length)
// deprecated: The witnessIndex represents the position of the first JoyID cell in inputs, and if it is undefined, witnessIndexes will work.
// deprecated: The witnessLastIndex represents the position of the last JoyID cell in inputs, and if it is undefined, witnessIndexes will work
// The witnessIndexes represents the positions of the JoyID cells in inputs, the default value is empty array
// deprecated: The witnessIndex represents the position of the first JoyID cell in inputs, and the default value is 0
// deprecated: The witnessLastIndex represents the position of the last JoyID cell in inputs, and the default value is inputs.length - 1
// deprecated: The witnessLastIndex must not be smaller than witnessIndex.
// deprecated: For example: witnessIndex = 1, witnessLastIndex = 3, this means the inputs[1..3] are JoyID cell, and the other inputs are another lock scripts.
export type SignConfig = CkbDappConfig &
Expand Down

0 comments on commit 600da16

Please sign in to comment.