@@ -61,7 +61,7 @@ export const makeCustomProposal = async (
6161 const transactionData : Contracts . Crypto . TransactionData [ ] = [ ] ;
6262 let payloadSize = 2 ;
6363
64- for ( const [ index , transaction ] of transactions . entries ( ) ) {
64+ for ( const transaction of transactions . values ( ) ) {
6565 let result = { gasRefunded : 0n , gasUsed : 0n , logs : [ ] as any , status : 0 } ;
6666
6767 try {
@@ -73,7 +73,6 @@ export const makeCustomProposal = async (
7373 timestamp : dayjs ( ) . valueOf ( ) ,
7474 } ,
7575 transaction ,
76- index ,
7776 ) ;
7877 } catch {
7978 result = { ...result , gasUsed : BigInt ( transaction . gasLimit ) } ;
@@ -129,14 +128,12 @@ export const makeCustomProposal = async (
129128 lockProof : undefined ,
130129 } ) ;
131130
132- const serializedProposal = await messageSerializer . serializeProposalUnsigned (
133- {
134- payloadSerialized : proposedBytes . toString ( "hex" ) ,
135- round,
136- validRound : undefined ,
137- validatorIndex : 0 ,
138- } ,
139- ) ;
131+ const serializedProposal = await messageSerializer . serializeProposalUnsigned ( {
132+ payloadSerialized : proposedBytes . toString ( "hex" ) ,
133+ round,
134+ validRound : undefined ,
135+ validatorIndex : 0 ,
136+ } ) ;
140137
141138 const proposalSignature = await app
142139 . getTagged < Contracts . Crypto . SignatureBls > ( Identifiers . Cryptography . Signature . Instance , "type" , "consensus" )
@@ -158,7 +155,11 @@ export const makeCustomProposal = async (
158155 return proposal ;
159156} ;
160157
161- export const makeTransactionBuilderContext = ( app : Contracts . Kernel . Application , apps : Contracts . Kernel . Application [ ] , validators : Validator [ ] ) => {
158+ export const makeTransactionBuilderContext = (
159+ app : Contracts . Kernel . Application ,
160+ apps : Contracts . Kernel . Application [ ] ,
161+ validators : Validator [ ] ,
162+ ) => {
162163 const context = {
163164 app,
164165 wallets : validators . map ( ( v ) => ( {
0 commit comments