anchor
anchor copied to clipboard
Fixing compile time issue on tic tac toe guide on referencing wallet
Summary
On the guide, the given instructions say that we should use this piece of code:
But using that shows that the field is not accessible, because the object's type hasn't been casted yet.
Actual:
const playerOne = program.provider.wallet
Expected:
const playerOne = (program.provider as anchor.AnchorProvider).wallet