@@ -6,12 +6,12 @@ import { signStateTransition } from '../../signStateTransition';
66/**
77 * Broadcast document onto the platform
88 *
9+ * @param {Platform } this - bound instance class
910 * @param {Object } documents
1011 * @param {ExtendedDocument[] } [documents.create]
1112 * @param {ExtendedDocument[] } [documents.replace]
1213 * @param {ExtendedDocument[] } [documents.delete]
1314 * @param identity - identity
14- * @param keyIndex - identity key index
1515 */
1616export default async function broadcast (
1717 this : Platform ,
@@ -21,7 +21,6 @@ export default async function broadcast(
2121 delete ?: ExtendedDocument [ ] ,
2222 } ,
2323 identity : any ,
24- keyIndex : number ,
2524) : Promise < any > {
2625 this . logger . debug ( '[Document#broadcast] Broadcast documents' , {
2726 create : documents . create ?. length || 0 ,
@@ -54,7 +53,7 @@ export default async function broadcast(
5453
5554 this . logger . silly ( '[Document#broadcast] Created documents batch transition' ) ;
5655
57- await signStateTransition ( this , documentsBatchTransition , identity , keyIndex ?? 1 ) ;
56+ await signStateTransition ( this , documentsBatchTransition , identity , 1 ) ;
5857
5958 // Broadcast state transition also wait for the result to be obtained
6059 await broadcastStateTransition ( this , documentsBatchTransition ) ;
0 commit comments