Dadepo Aderemi 3 years ago
parent
commit
d12a8bc57d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      basics/checking-accounts/native/tests/test.ts

+ 3 - 2
basics/checking-accounts/native/tests/test.ts

@@ -20,9 +20,10 @@ describe("Checking accounts", async () => {
 
     const connection = new Connection(`http://localhost:8899`, 'confirmed');
     const payer = createKeypairFromFile(require('os').homedir() + '/.config/solana/id.json');
-    
+    const program = createKeypairFromFile('./program/target/so/program-keypair.json');
+
     const PROGRAM_ID: PublicKey = new PublicKey(
-        ""
+        program.publicKey
     );
 
     // We'll create this ahead of time.