stake-pool: fix docstring typos (#3495)

fix typos
This commit is contained in:
Edgar 2022-08-19 12:57:32 -04:00 committed by GitHub
parent c426ed9749
commit 83b5dabf02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -416,7 +416,7 @@ export class StakePoolInstruction {
}
/**
* Creates a transaction instruction to deposit SOL into a stake pool.
* Creates a transaction instruction to deposit a stake account into a stake pool.
*/
static depositStake(params: DepositStakeParams): TransactionInstruction {
const {
@ -462,7 +462,7 @@ export class StakePoolInstruction {
}
/**
* Creates a transaction instruction to withdraw SOL from a stake pool.
* Creates a transaction instruction to deposit SOL into a stake pool.
*/
static depositSol(params: DepositSolParams): TransactionInstruction {
const {
@ -510,7 +510,7 @@ export class StakePoolInstruction {
}
/**
* Creates a transaction instruction to withdraw SOL from a stake pool.
* Creates a transaction instruction to withdraw active stake from a stake pool.
*/
static withdrawStake(params: WithdrawStakeParams): TransactionInstruction {
const {

View File

@ -674,7 +674,7 @@ def remove_validator_from_pool_with_vote(
def deposit_stake(params: DepositStakeParams) -> TransactionInstruction:
"""Creates a transaction instruction to deposit SOL into a stake pool."""
"""Creates a transaction instruction to deposit a stake account into a stake pool."""
keys = [
AccountMeta(pubkey=params.stake_pool, is_signer=False, is_writable=True),
AccountMeta(pubkey=params.validator_list, is_signer=False, is_writable=True),
@ -705,7 +705,7 @@ def deposit_stake(params: DepositStakeParams) -> TransactionInstruction:
def withdraw_stake(params: WithdrawStakeParams) -> TransactionInstruction:
"""Creates a transaction instruction to withdraw SOL from a stake pool."""
"""Creates a transaction instruction to withdraw active stake from a stake pool."""
return TransactionInstruction(
keys=[
AccountMeta(pubkey=params.stake_pool, is_signer=False, is_writable=True),