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

This commit is contained in:
Darren 2022-11-29 00:50:42 +08:00 committed by GitHub
parent ca7c3f0aca
commit 704fdce0cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)