Skip to content

Commit bc4dbea

Browse files
committed
fix checking-account and favorites error
1 parent 9a5f860 commit bc4dbea

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

basics/checking-accounts/anchor/tests/bankrun.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe("Bankrun example", async () => {
2424
const provider = new BankrunProvider(context);
2525

2626
const wallet = provider.wallet as anchor.Wallet;
27-
const program = new anchor.Program<AnchorProgramExample>(IDL, provider);
27+
const program = new anchor.Program<CheckingAccountProgram>(IDL, provider);
2828
const client = context.banksClient;
2929

3030
// We'll create this ahead of time.

basics/checking-accounts/anchor/tests/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("Anchor example", () => {
1111
const provider = anchor.AnchorProvider.env();
1212
anchor.setProvider(provider);
1313
const program = anchor.workspace
14-
.AnchorProgramExample as anchor.Program<AnchorProgramExample>;
14+
.CheckingAccountProgram as anchor.Program<CheckingAccountProgram>;
1515
const wallet = provider.wallet as anchor.Wallet;
1616

1717
// We'll create this ahead of time.

basics/favorites/anchor/programs/favorites/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ custom-heap = []
2020
custom-panic = []
2121

2222
[dependencies]
23-
anchor-lang = "0.32.1"
23+
anchor-lang = {version = "0.32.1", features = ["init-if-needed"]}
2424

2525
[lints.rust]
2626
unexpected_cfgs = { level = "warn", check-cfg = ['cfg(target_os, values("solana"))'] }

0 commit comments

Comments
 (0)