@ -86,7 +86,7 @@ impl StakeSubCommands for App<'_, '_> {
|
|||||||
.takes_value(true)
|
.takes_value(true)
|
||||||
.validator(is_amount)
|
.validator(is_amount)
|
||||||
.required(true)
|
.required(true)
|
||||||
.help("The amount of send to the vote account, in SOL")
|
.help("The amount to send to the stake account, in SOL")
|
||||||
)
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("custodian")
|
Arg::with_name("custodian")
|
||||||
|
@ -12,15 +12,15 @@ use thiserror::Error;
|
|||||||
|
|
||||||
#[derive(Error, Debug, Serialize, Clone, PartialEq, FromPrimitive, ToPrimitive)]
|
#[derive(Error, Debug, Serialize, Clone, PartialEq, FromPrimitive, ToPrimitive)]
|
||||||
pub enum SystemError {
|
pub enum SystemError {
|
||||||
#[error("an account with the same addreess already exists")]
|
#[error("an account with the same address already exists")]
|
||||||
AccountAlreadyInUse,
|
AccountAlreadyInUse,
|
||||||
#[error("account does not have enought lamports to perform the operation")]
|
#[error("account does not have enough lamports to perform the operation")]
|
||||||
ResultWithNegativeLamports,
|
ResultWithNegativeLamports,
|
||||||
#[error("cannot assign account to this program id")]
|
#[error("cannot assign account to this program id")]
|
||||||
InvalidProgramId,
|
InvalidProgramId,
|
||||||
#[error("cannot allocate account data of this length")]
|
#[error("cannot allocate account data of this length")]
|
||||||
InvalidAccountDataLength,
|
InvalidAccountDataLength,
|
||||||
#[error("length of requsted seed is too long")]
|
#[error("length of requested seed is too long")]
|
||||||
MaxSeedLengthExceeded,
|
MaxSeedLengthExceeded,
|
||||||
#[error("provided address does not match addressed derived from seed")]
|
#[error("provided address does not match addressed derived from seed")]
|
||||||
AddressWithSeedMismatch,
|
AddressWithSeedMismatch,
|
||||||
|
Reference in New Issue
Block a user