Skip to content

Commit 79979cd

Browse files
committed
Fixed test cases and updated poseidon
1 parent a1bfad5 commit 79979cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

basics/account-data/poseidon/tests/account_data.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ import { startAnchor } from 'solana-bankrun';
66
import { AddressInfoProgram } from '../target/types/address_info_program';
77

88
describe('Address Info Program', () => {
9-
// Constants
10-
const PROGRAM_ID = new PublicKey('ChA1o71vBEwkYNs6FnkmG4cxyZWtWkbXSEJ6xP2zaJAq');
9+
10+
const IDL = require('../target/idl/address_info_program.json');
11+
12+
const PROGRAM_ID = new PublicKey(IDL.address);
1113

1214
// Test setup
1315
let program: Program<AddressInfoProgram>;
@@ -29,8 +31,7 @@ describe('Address Info Program', () => {
2931
provider = new BankrunProvider(context);
3032

3133
// Get program from workspace
32-
const idl = require('../target/idl/address_info_program.json');
33-
program = new Program(idl, provider);
34+
program = new Program(IDL, provider);
3435

3536
owner = provider.wallet as Wallet;
3637

0 commit comments

Comments
 (0)