File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -320,7 +320,7 @@ export namespace NTT {
320
320
} ;
321
321
const pubkeys = collectPubkeys ( entries ) . map ( ( pk ) => pk . toBase58 ( ) ) ;
322
322
323
- let existingLut : web3 . AddressLookupTableAccount | null =
323
+ const existingLut : web3 . AddressLookupTableAccount | null =
324
324
await getAddressLookupTable ( program , pdas ) ;
325
325
326
326
if ( existingLut !== null ) {
@@ -1002,10 +1002,7 @@ export namespace NTT {
1002
1002
1003
1003
pdas = pdas ?? NTT . pdas ( program . programId ) ;
1004
1004
const lut = await program . account . lut . fetchNullable ( pdas . lutAccount ( ) ) ;
1005
- if ( ! lut )
1006
- throw new Error (
1007
- "Address lookup table not found. Did you forget to call initializeLUT?"
1008
- ) ;
1005
+ if ( ! lut ) return null ;
1009
1006
1010
1007
const response = await program . provider . connection . getAddressLookupTable (
1011
1008
lut . address
You can’t perform that action at this time.
0 commit comments