Skip to content

Commit c28f22b

Browse files
committed
cleanup names and commits
1 parent 60fb304 commit c28f22b

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

identity_iota_core/src/rebased/assets/asset.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ impl<T> AuthenticatedAsset<T> {
127127
/// Destroys this [`AuthenticatedAsset`].
128128
/// # Notes
129129
/// This function doesn't delete the asset right away, but instead creates a [`Transaction`] that
130-
/// can be executed in order to destory the asset.
130+
/// can be executed in order to destroy the asset.
131131
/// # Failures
132132
/// * Returns an [`Error::InvalidConfig`] if this asset cannot be deleted.
133133
pub fn delete(self) -> Result<DeleteAssetTx<T>, Error> {
@@ -203,7 +203,7 @@ impl<T> AuthenticatedAssetBuilder<T> {
203203

204204
/// Sets whether the new asset allows the transfer of its ownership.
205205
///
206-
/// By default an [`AuthenticatedAsset`] **cannot** be transfered.
206+
/// By default an [`AuthenticatedAsset`] **cannot** be transferred.
207207
pub fn transferable(mut self, transferable: bool) -> Self {
208208
self.transferable = transferable;
209209
self
@@ -233,7 +233,7 @@ impl<T> AuthenticatedAssetBuilder<T> {
233233
/// owner and a `RecipientCap` to the specified `recipient` address.
234234
/// `recipient` can accept the transfer by presenting its `RecipientCap` (this prevents other users from claiming the
235235
/// asset for themselves).
236-
/// The current owner can cancel the proposal at any time - given the transfer hasn't been conclued yet - by presenting
236+
/// The current owner can cancel the proposal at any time - given the transfer hasn't been concluded yet - by presenting
237237
/// its `SenderCap`.
238238
#[derive(Debug, Clone, Serialize, Deserialize)]
239239
pub struct TransferProposal {

identity_iota_core/src/rebased/client/full_client.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ impl<S> IdentityClient<S> {
281281
}
282282

283283
/// Query the objects owned by the address wrapped by this client to find the object of type `tag`
284-
/// and that satifies `predicate`.
284+
/// and that satisfies `predicate`.
285285
pub async fn find_owned_ref<P>(&self, tag: StructTag, predicate: P) -> Result<Option<ObjectRef>, Error>
286286
where
287287
P: Fn(&IotaObjectData) -> bool,

identity_iota_core/src/rebased/migration/alias.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ impl Transaction for MigrateLegacyAliasTx {
149149
S: Signer<IotaKeySignature> + Sync,
150150
{
151151
let response = self.0.execute_with_opt_gas(gas_budget, client).await?.response;
152-
// Make sure the tx was successfull.
152+
// Make sure the tx was successful.
153153
let effects = response
154154
.effects
155155
.as_ref()

identity_iota_core/src/rebased/migration/identity.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ use crate::rebased::client::IdentityClientReadOnly;
4040
use crate::rebased::client::IotaKeySignature;
4141
use crate::rebased::proposals::BorrowAction;
4242
use crate::rebased::proposals::ConfigChange;
43-
use crate::rebased::proposals::DeactiveDid;
43+
use crate::rebased::proposals::DeactivateDid;
4444
use crate::rebased::proposals::ProposalBuilder;
4545
use crate::rebased::proposals::SendAction;
4646
use crate::rebased::proposals::UpdateDidDocument;
@@ -165,8 +165,8 @@ impl OnChainIdentity {
165165
}
166166

167167
/// Deactivates the DID Document represented by this [`OnChainIdentity`].
168-
pub fn deactivate_did(&mut self) -> ProposalBuilder<'_, DeactiveDid> {
169-
ProposalBuilder::new(self, DeactiveDid::new())
168+
pub fn deactivate_did(&mut self) -> ProposalBuilder<'_, DeactivateDid> {
169+
ProposalBuilder::new(self, DeactivateDid::new())
170170
}
171171

172172
/// Sends assets owned by this [`OnChainIdentity`] to other addresses.

identity_iota_core/src/rebased/proposals/deactive_did.rs identity_iota_core/src/rebased/proposals/deactivate_did.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ use super::ProposalT;
2525

2626
/// Action for deactivating a DID Document inside an Identity.
2727
#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize)]
28-
pub struct DeactiveDid;
28+
pub struct DeactivateDid;
2929

30-
impl DeactiveDid {
30+
impl DeactivateDid {
3131
pub const fn new() -> Self {
3232
Self
3333
}
3434
}
3535

36-
impl MoveType for DeactiveDid {
36+
impl MoveType for DeactivateDid {
3737
fn move_type(package: ObjectID) -> TypeTag {
3838
use std::str::FromStr;
3939

@@ -42,8 +42,8 @@ impl MoveType for DeactiveDid {
4242
}
4343

4444
#[async_trait]
45-
impl ProposalT for Proposal<DeactiveDid> {
46-
type Action = DeactiveDid;
45+
impl ProposalT for Proposal<DeactivateDid> {
46+
type Action = DeactivateDid;
4747
type Output = ();
4848

4949
async fn create<'i, S>(

identity_iota_core/src/rebased/proposals/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
mod borrow;
55
mod config_change;
6-
mod deactive_did;
6+
mod deactivate_did;
77
mod send;
88
mod update_did_doc;
99

@@ -19,7 +19,7 @@ use crate::rebased::transaction::ProtoTransaction;
1919
use async_trait::async_trait;
2020
pub use borrow::*;
2121
pub use config_change::*;
22-
pub use deactive_did::*;
22+
pub use deactivate_did::*;
2323
use iota_sdk::rpc_types::IotaExecutionStatus;
2424
use iota_sdk::rpc_types::IotaObjectData;
2525
use iota_sdk::rpc_types::IotaObjectDataOptions;

identity_storage/src/storage/error.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,12 @@ pub enum JwkStorageDocumentError {
3030
/// Caused by an invalid JWP algorithm.
3131
#[error("invalid JWP algorithm")]
3232
InvalidJwpAlgorithm,
33-
/// Cannot cunstruct a valid Jwp (issued or presented form)
33+
/// Cannot construct a valid Jwp (issued or presented form)
3434
#[error("Not able to construct a valid Jwp")]
3535
JwpBuildingError,
3636
/// Credential's proof update internal error
3737
#[error("Credential's proof internal error")]
3838
ProofUpdateError(String),
39-
4039
/// Caused by a failure to construct a verification method.
4140
#[error("method generation failed: unable to create a valid verification method")]
4241
VerificationMethodConstructionError(#[source] identity_verification::Error),

0 commit comments

Comments
 (0)