Skip to content

Commit

Permalink
Merge branch 'main' of github.com:OpenZeppelin/cairo-contracts into f…
Browse files Browse the repository at this point in the history
…eat/testing-state-#777
  • Loading branch information
ericnordelo committed Dec 4, 2023
2 parents 5522c84 + 984d3be commit 03269e7
Show file tree
Hide file tree
Showing 9 changed files with 290 additions and 403 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Utilities documentation (#825)

### Changed

- Use ComponentState in tests (#836)


Check failure on line 18 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / Lint and test

Multiple consecutive blank lines [Expected: 1; Actual: 2]

CHANGELOG.md:18 MD012/no-multiple-blanks Multiple consecutive blank lines [Expected: 1; Actual: 2]
2 changes: 1 addition & 1 deletion docs/modules/ROOT/nav.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@
** xref:/api/introspection.adoc[API Reference]
// * xref:udc.adoc[Universal Deployer Contract]
// * xref:utilities.adoc[Utilities]
* xref:utilities.adoc[Utilities]
* xref:contracts::index.adoc[Contracts for Solidity]
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/interfaces.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ This is done by simply executing the `snake_case` version of the function (e.g.

```javascript
fn try_selector_with_fallback(
target: ContractAddress, snake_selector: felt252, camel_selector: felt252, args: Span<felt252>
target: ContractAddress, selector: felt252, fallback: felt252, args: Span<felt252>
) -> SyscallResult<Span<felt252>> {
match call_contract_syscall(target, snake_selector, args) {
match call_contract_syscall(target, selector, args) {
Result::Ok(ret) => Result::Ok(ret),
Result::Err(errors) => {
if *errors.at(0) == 'ENTRYPOINT_NOT_FOUND' {
return call_contract_syscall(target, camel_selector, args);
return call_contract_syscall(target, fallback, args);
} else {
Result::Err(errors)
}
Expand Down
Loading

0 comments on commit 03269e7

Please sign in to comment.