Explorar o código

Fixed compile time issue on p1 wallet (#2066) (#2067)

Darren %!s(int64=2) %!d(string=hai) anos
pai
achega
704fdce0cd
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      docs/src/pages/docs/tic-tac-toe.md

+ 1 - 1
docs/src/pages/docs/tic-tac-toe.md

@@ -416,7 +416,7 @@ You can create then a new `it` test, setup the game like in the previous test, b
 ```typescript
 it('player one wins', async () => {
   const gameKeypair = anchor.web3.Keypair.generate()
-  const playerOne = program.provider.wallet
+  const playerOne = (program.provider as anchor.AnchorProvider).wallet
   const playerTwo = anchor.web3.Keypair.generate()
   await program.methods
     .setupGame(playerTwo.publicKey)