From 508e0b70bdcc566c44b60af77976a2862b25fff9 Mon Sep 17 00:00:00 2001 From: kennethcassel Date: Fri, 11 Mar 2022 11:31:08 -0600 Subject: [PATCH] Add instructions for generating a local keypair to tic-tac-toe section (#31) --- src/chapter_3/milestone_project_tic-tac-toe.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/chapter_3/milestone_project_tic-tac-toe.md b/src/chapter_3/milestone_project_tic-tac-toe.md index 79b1502..71fdab1 100644 --- a/src/chapter_3/milestone_project_tic-tac-toe.md +++ b/src/chapter_3/milestone_project_tic-tac-toe.md @@ -176,6 +176,9 @@ Now, run `anchor test`. This starts up (and subsequently shuts down) a local val > This is likely because the test file is looking for types from your program that haven't been generated yet. > To generate them, run `anchor build`. This builds the program and creates the idl and typescript types. + +If you get the error `Error: Unable to read keypair file` when running the test, you likely need to generate a Solana keypair using `solana-keygen new`. + ## Playing the game ### The Play Instruction