@@ -197,6 +197,7 @@ export const createAuthorityUpdateTx = async (squadsSdk: Squads, multisig: Publi
197
197
const queue = mints ;
198
198
let txState = await squadsSdk . createTransaction ( multisig , 1 ) ;
199
199
ws . write ( `Created Transaction at PDA: ${ txState . publicKey . toBase58 ( ) } \n` ) ;
200
+ await squadsSdk . getTransaction ( txState . publicKey ) ;
200
201
const batchLength = mints . length ;
201
202
ws . write ( `Attaching ${ batchLength } instructions for each metadata account\n` ) ;
202
203
let hasError = false ;
@@ -223,6 +224,7 @@ export const createAuthorityUpdateTx = async (squadsSdk: Squads, multisig: Publi
223
224
// flash tx state
224
225
await squadsSdk . getTransaction ( txState . publicKey ) ;
225
226
} catch ( e ) {
227
+ ws . write ( `Failed to attach ix: ${ e } \n` ) ;
226
228
attachFails . push ( mint ) ;
227
229
}
228
230
}
@@ -434,9 +436,7 @@ export const sendTxMetaIx = async (msPDA: PublicKey, txPDA: PublicKey, member: P
434
436
435
437
// rough calculation of how much SOL the process will take
436
438
export const estimateBulkUpdate = async ( sdk : Squads , connection : Connection , buckets : PublicKey [ ] [ ] , testKey : PublicKey ) => {
437
- const numTx = buckets . length ;
438
439
// 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 ( ) ;
440
440
let ixBytes = 0 ;
441
441
const metaIx = await updateMetadataAuthorityIx ( testKey , testKey , testKey ) ;
442
442
const testIx = await sdk . buildAddInstruction ( testKey , testKey , metaIx , 0 ) ;
0 commit comments