Skip to content

Commit

Permalink
Fixed test cases and updated poseidon
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCipherCoder committed Nov 25, 2024
1 parent a1bfad5 commit 79979cd
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions basics/account-data/poseidon/tests/account_data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ import { startAnchor } from 'solana-bankrun';
import { AddressInfoProgram } from '../target/types/address_info_program';

describe('Address Info Program', () => {
// Constants
const PROGRAM_ID = new PublicKey('ChA1o71vBEwkYNs6FnkmG4cxyZWtWkbXSEJ6xP2zaJAq');

const IDL = require('../target/idl/address_info_program.json');

const PROGRAM_ID = new PublicKey(IDL.address);

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

// Get program from workspace
const idl = require('../target/idl/address_info_program.json');
program = new Program(idl, provider);
program = new Program(IDL, provider);

owner = provider.wallet as Wallet;

Expand Down

0 comments on commit 79979cd

Please sign in to comment.