Skip to content

Commit d59cf18

Browse files
committed
chore: update dependencies and TypeScript configuration for PDA Rent-Payer
- Added litesvm dependency to package.json. - Adjusted import path for PdaRentPayer in test.ts to include the .ts extension. - Updated pnpm-lock.yaml to include litesvm and its variants. - Changed TypeScript module resolution from commonjs to nodenext.
1 parent 5422915 commit d59cf18

File tree

4 files changed

+94
-10
lines changed

4 files changed

+94
-10
lines changed

basics/pda-rent-payer/anchor/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"type": "module",
33
"dependencies": {
44
"@coral-xyz/anchor": "0.32.1",
5-
"@solana/web3.js": "^1.95.2"
5+
"@solana/web3.js": "^1.95.2",
6+
"litesvm": "^0.4.0"
67
},
78
"devDependencies": {
89
"@types/bn.js": "^5.1.0",

basics/pda-rent-payer/anchor/pnpm-lock.yaml

Lines changed: 83 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

basics/pda-rent-payer/anchor/tests/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as anchor from "@coral-xyz/anchor";
22
import { Keypair, LAMPORTS_PER_SOL, PublicKey } from "@solana/web3.js";
33
import BN from "bn.js";
44
import { assert } from "chai";
5-
import type { PdaRentPayer } from "../target/types/pda_rent_payer";
5+
import type { PdaRentPayer } from "../target/types/pda_rent_payer.ts";
66

77
describe("PDA Rent-Payer", () => {
88
const provider = anchor.AnchorProvider.env();
Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"compilerOptions": {
3-
"types": ["mocha", "chai"],
4-
"typeRoots": ["./node_modules/@types"],
5-
"lib": ["es2015"],
6-
"module": "commonjs",
7-
"target": "es6",
8-
"esModuleInterop": true
9-
}
2+
"compilerOptions": {
3+
"types": ["mocha", "chai"],
4+
"typeRoots": ["./node_modules/@types"],
5+
"lib": ["es2015"],
6+
"module": "nodenext",
7+
"target": "es6",
8+
"esModuleInterop": true
9+
}
1010
}

0 commit comments

Comments
 (0)