File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
basics/account-data/poseidon/tests Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,10 @@ import { startAnchor } from 'solana-bankrun';
66import { AddressInfoProgram } from '../target/types/address_info_program' ;
77
88describe ( '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
You can’t perform that action at this time.
0 commit comments