coral-xyz / anchor-book

The Anchor Book
https://book.anchor-lang.com
Apache License 2.0
96 stars 59 forks source link

tic-tac-toe test throwing Error: unknown signer: ... #101

Open chasing-pointers opened 1 month ago

chasing-pointers commented 1 month ago

When attempting to execute tic-tac-toe.ts, the program throws an unknown singer error.

This happens the first time an invocation to play() is called with playerTwo. All code being used is exactly as represented in this repo with the exception of commenting out tests after the second play invocation in it("player one wins").

Apologies if this is something dumb I'm doing.

acheroncrypto commented 1 month ago

I'm not able to reproduce the issue — running anchor test works for me.

Probably not related, but I've added toolchain information in https://github.com/coral-xyz/anchor-book/pull/102, so that you have the correct versions when running the example(s).