File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -413,6 +413,7 @@ async function main() {
413413 const [ payer , mint ] = keysFromEnv ( [ 'PAYER_KEYPAIR' , 'M_MINT_KEYPAIR' ] ) ;
414414 const admin = process . env . SQUADS_VAULT ? new PublicKey ( process . env . SQUADS_VAULT ) : payer . publicKey ;
415415 const { ntt } = NttManager ( connection , payer , mint . publicKey ) ;
416+ const swapLUT = new PublicKey ( '9JLRqBqkznKiSoNfotA4ywSRdnWb2fE76SiFrAfkaRCD' ) ;
416417
417418 const tx = new Transaction ( ) . add (
418419 new TransactionInstruction ( {
@@ -442,7 +443,11 @@ async function main() {
442443 isWritable : false ,
443444 } ,
444445 ] ,
445- data : Buffer . concat ( [ Buffer . from ( sha256 ( 'global:initialize_resolver_accounts' ) . subarray ( 0 , 8 ) ) ] ) ,
446+ data : Buffer . concat ( [
447+ Buffer . from ( sha256 ( 'global:initialize_resolver_accounts' ) . subarray ( 0 , 8 ) ) ,
448+ Buffer . from ( [ 1 ] ) ,
449+ swapLUT . toBuffer ( ) ,
450+ ] ) ,
446451 } ) ,
447452 ) ;
448453
@@ -457,7 +462,7 @@ async function main() {
457462 } ) ;
458463 } else {
459464 const sig = await connection . sendTransaction ( tx , [ payer ] ) ;
460- console . log ( `Updated mint : ${ sig } ` ) ;
465+ console . log ( `Initialized resolver : ${ sig } ` ) ;
461466 }
462467 } ) ;
463468
You can’t perform that action at this time.
0 commit comments