Skip to content

Commit

Permalink
docs: fix typo (n-06) (#2641)
Browse files Browse the repository at this point in the history
* docs: fix typo

* docs: clarify syscall behavior
  • Loading branch information
glihm authored Nov 9, 2024
1 parent aa44e0c commit 9076795
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/dojo/core/src/contract/components/upgradeable.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@ pub mod upgradeable_cpt {
);
assert(new_class_hash.is_non_zero(), Errors::INVALID_CLASS);

// Seems like the match doesn't catch the error is the entrypoint is
// not found.
// Currently - any syscall that fails on starknet - fails the transaction, and it won't
// be included in any block.
// The test runner does not simulate this, but instead simulates the future behavior
// when errors can be recovered from.
match starknet::syscalls::library_call_syscall(
new_class_hash, selector!("dojo_name"), [].span(),
) {
Expand Down

0 comments on commit 9076795

Please sign in to comment.