Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: typos #232

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions MIGRATING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ error[E0308]: mismatched types
found struct `InstantiateCtx<'_>`
```

`InstantiateCtx` and `ExecCtx` could be previosly used interchangeably. They are currently separate
`InstantiateCtx` and `ExecCtx` could be previously used interchangeably. They are currently separate
types. The same applies to `ReplyCtx`/`MigrateCtx` pair.

## 0.4.2 -> 0.5.0
Expand All @@ -39,4 +39,4 @@ error[E0308]: mismatched types
+}
```

`module` attr for macro contract should now point to your contract implemntation
`module` attr for macro contract should now point to your contract implementation
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ but only one - the one with info about the trait being implemented.

## Macro attributes

`Sylvia` work with multiple attributes. I will explain here how and when to use which of them.
`Sylvia` works with multiple attributes. I will explain here how and when to use which of them.

```rust
#[contract(module=contract_module::inner_module)]
Expand All @@ -413,7 +413,7 @@ impl Interface for MyContract {
}
```

`module` is meant to be used when implementing interface on the contract. It's purpose
`module` is meant to be used when implementing interface on the contract. Its purpose
is to inform `sylvia` where is the contract defined. If the contract is implemented in the same
scope this attribute can and should be omitted.

Expand All @@ -426,7 +426,7 @@ impl MyContract {
}
```

`error` is used by both `contract` and `entry_point` macros. It is neccessary in case a custom
`error` is used by both `contract` and `entry_point` macros. It is necessary in case a custom
error is being used by your contract. If omitted generated code will use `StdError`.

```rust
Expand All @@ -444,7 +444,7 @@ impl Interface for MyContract {
```

`messages` is the attribute for the `contract` macro. We can use it both when implementing contract
and when implementing an interface on a contract. It's purpose is to point sylvia to what interface
and when implementing an interface on a contract. Its purpose is to point sylvia to what interface
is being implemented and how module in which it is defined is called.

In case of the implementation of a trait it is only needed if the trait is defined in different
Expand Down Expand Up @@ -710,7 +710,7 @@ impl Contract {
```

It is possible to override all message types like that. Next to the entry point path you will
also have to provide the type of your custom message. It is required to deserialize the messsage
also have to provide the type of your custom message. It is required to deserialize the message
in the `multitest helpers`.

## Multitest
Expand Down Expand Up @@ -826,7 +826,7 @@ is an error type of the contract.
## Interface items in multitest

Because of implementation restrictions, calling methods from the contract interface
looks slightly different:
look slightly different:

```rust
use contract::multitest_utils::Group;
Expand Down
4 changes: 2 additions & 2 deletions sylvia/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub const fn assert_no_intersection<const N: usize>(msgs: [&[&str]; N]) {
// Compare all elements at current indexes
verify_no_collissions(&msgs, &states, &index);

// Increment index of alaphabeticaly first element
// Increment index of alphabetically first element
states[index] = match states[index] {
State::Ongoing(wi) => {
if msgs[index].len() == wi + 1 {
Expand Down Expand Up @@ -80,7 +80,7 @@ const fn get_next_alphabetical_index<const N: usize>(
}

// Compare values at current indexes saved in states.
// All comparisions are made with value at index which point to alphabetically smallest
// All comparisons are made with value at index which point to alphabetically smallest
// and values in each other arrays at their current position.
//
// Because arrays are sorted we don't have to compare each value with each other
Expand Down
Loading