Skip to content

Commit 532fa66

Browse files
committed
fix: interfaces and dispatchers
1 parent fc66940 commit 532fa66

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

content/contracts-cairo/guides/interfaces-and-dispatchers.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Interfaces can be found in the `openzeppelin_interfaces` package modules, such a
88

99
<Callout>
1010
Starting from version `3.x.x`, OpenZeppelin Contracts for Cairo interfaces have been separated from their implementation modules into a dedicated package.
11+
This architectural change brings several important benefits. Check the [Interfaces module](../interfaces) section for more information.
1112
</Callout>
12-
This architectural change brings several important benefits. Check the [Interfaces](interfaces) section for more information.
1313

1414
For example:
1515

@@ -57,8 +57,9 @@ the ERC20 preset that includes functions from different standards such as `IERC2
5757

5858
<Callout>
5959
The library offers an ABI trait for most components, providing all external function signatures
60+
even when most of the time all of them don’t need to be implemented at the same time. This can be helpful when interacting with
61+
a contract implementing the component, instead of defining a new dispatcher.
6062
</Callout>
61-
even when most of the time all of them don’t need to be implemented at the same time. This can be helpful when interacting with a contract implementing the component, instead of defining a new dispatcher.
6263

6364
```rust
6465
#[starknet::interface]
@@ -100,16 +101,16 @@ Other types of dispatchers are also auto-generated from the annotated trait. See
100101

101102
<Callout>
102103
In the example, the `IERC20Dispatcher` is the one used to interact with contracts, but the
103-
</Callout>
104104
`IERC20DispatcherTrait` needs to be in scope for the functions to be available.
105+
</Callout>
105106

106107
## Dual interfaces
107108

108109
<Callout type='warn'>
109-
`camelCase` functions are deprecated and maintained only for Backwards Compatibility.
110-
</Callout>
110+
The `camelCase` functions are deprecated and maintained only for backwards compatibility.
111111
It’s recommended to only use `snake_case` interfaces with contracts and components. The `camelCase` functions will be removed in
112112
future versions.
113+
</Callout>
113114

114115
Following the [Great Interface Migration](https://community.starknet.io/t/the-great-interface-migration/92107) plan, we added `snake_case` functions to all of our preexisting `camelCase` contracts with the goal of eventually dropping support for the latter.
115116

0 commit comments

Comments
 (0)