Skip to content
This repository was archived by the owner on Nov 11, 2024. It is now read-only.

Commit f6ab047

Browse files
authored
docs: fix typo (n-06) (#36)
* docs: fix typo * docs: update the comment for the syscall to actual behavior
1 parent 22c37b5 commit f6ab047

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

crates/contracts/src/contract/components/upgradeable.cairo

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ pub mod upgradeable_cpt {
5050
);
5151
assert(new_class_hash.is_non_zero(), Errors::INVALID_CLASS);
5252

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

0 commit comments

Comments
 (0)