coral-xyz / anchor-book

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

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

Open chasing-pointers opened 3 months ago

chasing-pointers commented 3 months 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 3 months 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).