Skip to content

Commit 938da49

Browse files
committed
fix resolve ix
1 parent 8b7ffea commit 938da49

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

services/cli/main.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)