Skip to content

Commit

Permalink
Merge pull request #121 from omahs/omahs-patch-1
Browse files Browse the repository at this point in the history
Fix typos
  • Loading branch information
abizjak authored Aug 21, 2023
2 parents 5a84f1a + ae04201 commit fea7442
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The SDK relies on files generated from [protobuf schemas](https://github.com/Con
These files are committed to the repository so that users of the SDK do not have to have the
protobuf compiler installed in order to use the SDK.

Occassionally there is a need to update the generated files, if the schemas
Occasionally there is a need to update the generated files, if the schemas
change. This can be done by compiling the SDK using the `generate-protos`
feature, i.e.,

Expand Down
4 changes: 2 additions & 2 deletions src/cis4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub enum Cis4QueryError {
#[error("Invalid receive name: {0}")]
InvalidReceiveName(#[from] contracts_common::NewReceiveNameError),

/// A general RPC error occured.
/// A general RPC error occurred.
#[error("RPC error: {0}")]
RPCError(#[from] super::v2::QueryError),

Expand Down Expand Up @@ -67,7 +67,7 @@ pub enum Cis4TransactionError {
#[error("Parameter is too large: {0}")]
InvalidParams(#[from] ExceedsParameterSize),

/// A general RPC error occured.
/// A general RPC error occurred.
#[error("RPC error: {0}")]
RPCError(#[from] super::v2::RPCError),

Expand Down
2 changes: 1 addition & 1 deletion src/endpoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,7 @@ impl Client {
/// This is a low-level function that can be useful in case a transaction is
/// constructed by a third party. It avoids deserializing and converting
/// data.
/// If the transaciton is accepted by the node then the transaction hash
/// If the transaction is accepted by the node then the transaction hash
/// that can be used to query the status is returned.
pub async fn send_raw_account_transaction(
&mut self,
Expand Down
2 changes: 1 addition & 1 deletion src/postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pub enum DatabaseSummaryEntry {
/// result of user actions, e.g., transfers, account creations.
BlockItem(BlockItemSummary),
#[serde(rename = "Right")]
/// Protocol genereated event, such as baking and finalization rewards, and
/// Protocol generated event, such as baking and finalization rewards, and
/// minting.
ProtocolEvent(SpecialTransactionOutcome),
}
Expand Down
4 changes: 2 additions & 2 deletions src/types/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ pub struct AccountEncryptedAmount {
/// Encrypted amount that is a result of this accounts' actions.
/// In particular this list includes the aggregate of
///
/// - remaining amounts that result when transfering to public balance
/// - remaining amounts when transfering to another account
/// - remaining amounts that result when transferring to public balance
/// - remaining amounts when transferring to another account
/// - encrypted amounts that are transferred from public balance
///
/// When a transfer is made all of these must always be used.
Expand Down
2 changes: 1 addition & 1 deletion src/types/queries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ pub enum BanMethod {
pub struct PendingUpdate {
/// Time when it will become effective.
pub effective_time: TransactionTime,
/// The effect the udpate will have.
/// The effect the update will have.
pub effect: PendingUpdateEffect,
}

Expand Down

0 comments on commit fea7442

Please sign in to comment.