@@ -197,6 +197,7 @@ export const createAuthorityUpdateTx = async (squadsSdk: Squads, multisig: Publi
197197 const queue = mints ;
198198 let txState = await squadsSdk . createTransaction ( multisig , 1 ) ;
199199 ws . write ( `Created Transaction at PDA: ${ txState . publicKey . toBase58 ( ) } \n` ) ;
200+ await squadsSdk . getTransaction ( txState . publicKey ) ;
200201 const batchLength = mints . length ;
201202 ws . write ( `Attaching ${ batchLength } instructions for each metadata account\n` ) ;
202203 let hasError = false ;
@@ -223,6 +224,7 @@ export const createAuthorityUpdateTx = async (squadsSdk: Squads, multisig: Publi
223224 // flash tx state
224225 await squadsSdk . getTransaction ( txState . publicKey ) ;
225226 } catch ( e ) {
227+ ws . write ( `Failed to attach ix: ${ e } \n` ) ;
226228 attachFails . push ( mint ) ;
227229 }
228230 }
@@ -434,9 +436,7 @@ export const sendTxMetaIx = async (msPDA: PublicKey, txPDA: PublicKey, member: P
434436
435437// rough calculation of how much SOL the process will take
436438export const estimateBulkUpdate = async ( sdk : Squads , connection : Connection , buckets : PublicKey [ ] [ ] , testKey : PublicKey ) => {
437- const numTx = buckets . length ;
438439 // iterate through each bucket, and create a transaction, then create an instruction for each item in each bucket
439- const { blockhash, lastValidBlockHeight} = await connection . getLatestBlockhash ( ) ;
440440 let ixBytes = 0 ;
441441 const metaIx = await updateMetadataAuthorityIx ( testKey , testKey , testKey ) ;
442442 const testIx = await sdk . buildAddInstruction ( testKey , testKey , metaIx , 0 ) ;
0 commit comments