diff --git a/.changeset/new-numbers-drum.md b/.changeset/new-numbers-drum.md new file mode 100644 index 0000000..10dc763 --- /dev/null +++ b/.changeset/new-numbers-drum.md @@ -0,0 +1,5 @@ +--- +'@joyid/common': minor +--- + +feat: Add witnessIndexes to SignCkbRawTxRequest diff --git a/.changeset/rich-taxis-walk.md b/.changeset/rich-taxis-walk.md new file mode 100644 index 0000000..6aab410 --- /dev/null +++ b/.changeset/rich-taxis-walk.md @@ -0,0 +1,5 @@ +--- +'@joyid/ckb': major +--- + +feat: Add witnessIndexes to signRawTransaction diff --git a/packages/ckb/src/index.ts b/packages/ckb/src/index.ts index f3a4415..fa9d714 100644 --- a/packages/ckb/src/index.ts +++ b/packages/ckb/src/index.ts @@ -65,8 +65,8 @@ 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 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 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 // 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 &