Fix: typos (#2236)

Fix: typos
This commit is contained in:
omahs 2022-11-14 17:57:41 +01:00 committed by GitHub
parent feff131ab0
commit 43ab991852
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,7 @@ mod registry {
&ctx.accounts.member.balances
}
};
// Check the vaults given are corrrect.
// Check the vaults given are correct.
if &balances.vault != ctx.accounts.vault.key {
return err!(ErrorCode::InvalidVault);
}
@ -644,7 +644,7 @@ impl<'info> CreateMember<'info> {
// When creating a member, the mints and owners of these accounts are correct.
// Upon creation, we assign the accounts. A onetime operation.
// When using a member, we check these accounts addresess are equal to the
// When using a member, we check these accounts addresses are equal to the
// addresses stored on the member. If so, the correct accounts were given are
// correct.
#[derive(Accounts, Clone)]
@ -1191,7 +1191,7 @@ pub enum ErrorCode {
InvalidVault,
#[msg("Invalid vault owner.")]
InvalidVaultOwner,
#[msg("An unknown error has occured.")]
#[msg("An unknown error has occurred.")]
Unknown,
#[msg("The unstake timelock has not yet expired.")]
UnstakeTimelock,