From 68a78de95c89d7966e9f9080734d1ff1fc48e54e Mon Sep 17 00:00:00 2001 From: adpthegreat Date: Wed, 13 Nov 2024 13:18:07 +0100 Subject: [PATCH] formatted test/createNativeMint.test.ts --- clients/js/test/createNativeMint.test.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/clients/js/test/createNativeMint.test.ts b/clients/js/test/createNativeMint.test.ts index c4cc7bf..25133af 100644 --- a/clients/js/test/createNativeMint.test.ts +++ b/clients/js/test/createNativeMint.test.ts @@ -1,18 +1,14 @@ -import { Account, address, none,} from '@solana/web3.js'; +import { Account, address, none } from '@solana/web3.js'; import test from 'ava'; -import { - Mint, - fetchMint, - getCreateNativeMintInstruction, -} from '../src'; +import { Mint, fetchMint, getCreateNativeMintInstruction } from '../src'; import { createDefaultSolanaClient, generateKeyPairSignerWithSol, sendAndConfirmInstructions, } from './_setup'; -//Mint for native SOL Token accounts -const NATIVE_MINT = address("9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP"); +//Mint for native SOL Token accounts +const NATIVE_MINT = address('9pan9bMn5HatX4EJdBwg9VgCa7Uz5HL8N1m5D3NdXejP'); test('it creates a native mint account', async (t) => { // Given a payer account. @@ -21,10 +17,10 @@ test('it creates a native mint account', async (t) => { // When we create a native mint account. await sendAndConfirmInstructions(client, payer, [ - getCreateNativeMintInstruction({ + getCreateNativeMintInstruction({ payer: payer, nativeMint: NATIVE_MINT, - }) + }), ]); // Then we expect the native mint account to exist with the following data. @@ -45,7 +41,7 @@ test('it creates a native mint account', async (t) => { test('it fails to create native mint if it already exists', async (t) => { // Given a payer and a mint account const client = createDefaultSolanaClient(); - const payer = await generateKeyPairSignerWithSol(client); + const payer = await generateKeyPairSignerWithSol(client); // When we try to create the same native mint twice await sendAndConfirmInstructions(client, payer, [