docs: fix stake state typo (#23776)

This commit is contained in:
g1stavo 2022-03-18 16:45:07 -03:00 committed by GitHub
parent a419374fa4
commit c556811c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -681,8 +681,8 @@ console.log(`Stake balance: ${stakeBalance}`)
// We can verify the state of our stake. This may take some time to become active
let stakeState = await connection.getStakeActivation(stakeAccount.publicKey);
console.log(`Stake Stake: ${stakeState.state}`);
// Stake State: inactive
console.log(`Stake state: ${stakeState.state}`);
// Stake state: inactive
// To delegate our stake, we get the current vote accounts and choose the first
let voteAccounts = await connection.getVoteAccounts();