Skip to content

Commit a61a732

Browse files
fix: correct import for getSetComputeUnitLimitInstruction helper (#2992)
1 parent f1dc13d commit a61a732

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/library/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,7 +890,7 @@ Since validators have an incentive to pack as many transactions into each block
890890
Use this utility to estimate the actual compute unit cost of a given transaction message.
891891

892892
```ts
893-
import { getSetComputeLimitInstruction } from '@solana-program/compute-budget';
893+
import { getSetComputeUnitLimitInstruction } from '@solana-program/compute-budget';
894894
import { createSolanaRpc, getComputeUnitEstimateForTransactionMessageFactory, pipe } from '@solana/web3.js';
895895

896896
// Create an estimator function.
@@ -910,7 +910,7 @@ const computeUnitsEstimate = await getComputeUnitEstimateForTransactionMessage(t
910910

911911
// Set the transaction message's compute unit budget.
912912
const transactionMessageWithComputeUnitLimit = prependTransactionMessageInstruction(
913-
getSetComputeLimitInstruction({ units: computeUnitsEstimate }),
913+
getSetComputeUnitLimitInstruction({ units: computeUnitsEstimate }),
914914
transactionMessage,
915915
);
916916
```

0 commit comments

Comments
 (0)