docs: fix stake state typo (#23776) (#23778)

(cherry picked from commit c556811c0f)

Co-authored-by: g1stavo <gustavocsalvador@gmail.com>
This commit is contained in:
mergify[bot]
2022-03-22 00:10:40 +00:00
committed by GitHub
parent a70bce050d
commit 6e02c14055

View File

@ -677,8 +677,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();