Skip to content

Commit be7e7b0

Browse files
committed
Rename createLookupTable
1 parent 1d7415c commit be7e7b0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -597,12 +597,12 @@ const signature = await sendVersionedTransaction(
597597
);
598598
```
599599

600-
#### `CreateLookupTable`
600+
#### `createLookupTable`
601601

602602
Creates a new address lookup table and extends it with additional addresses.
603603

604604
```typescript
605-
async function CreateLookupTable(
605+
async function createLookupTable(
606606
connection: Connection,
607607
sender: Keypair,
608608
additionalAddresses: PublicKey[],
@@ -613,7 +613,7 @@ async function CreateLookupTable(
613613
Example:
614614

615615
```typescript
616-
const [lookupTableAddress, lookupTableAccount] = await CreateLookupTable(
616+
const [lookupTableAddress, lookupTableAccount] = await createLookupTable(
617617
connection,
618618
payer,
619619
[account1.publicKey, account2.publicKey, account3.publicKey],

src/lib/transaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -725,7 +725,7 @@ async function sendVersionedTransactionWithRetry(
725725
* @param additionalAddresses - Array of additional addresses to include in the lookup table
726726
* @returns A tuple containing the lookup table address and the lookup table account
727727
*/
728-
export async function CreateLookupTable(
728+
export async function createLookupTable(
729729
connection: Connection,
730730
sender: Keypair,
731731
additionalAddresses: PublicKey[],

tests/src/transaction.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import {
1414
airdropIfRequired,
1515
confirmTransaction,
16-
CreateLookupTable,
16+
createLookupTable,
1717
getSimulationComputeUnits,
1818
prepareTransactionWithCompute,
1919
sendTransaction,
@@ -248,14 +248,14 @@ describe("Transaction utilities", () => {
248248
const recipient2 = Keypair.generate();
249249
const recipient3 = Keypair.generate();
250250

251-
const [lookupTableAddress, lookupTableAccount] = await CreateLookupTable(
251+
const [lookupTableAddress, lookupTableAccount] = await createLookupTable(
252252
connection,
253253
sender,
254254
[
255255
sender.publicKey,
256256
recipient.publicKey,
257257
recipient2.publicKey,
258-
recipient3.publicKey
258+
recipient3.publicKey,
259259
],
260260
);
261261

0 commit comments

Comments
 (0)