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

Commit

Permalink
Merge branch 'master' into mraszyk/anonymous-read-state-expiry
Browse files Browse the repository at this point in the history
  • Loading branch information
mraszyk committed Nov 1, 2024
2 parents 6867275 + e477c6a commit e6da177
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docusaurus/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions spec/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,8 @@ It must be contained in the canister ranges of a subnet, otherwise the correspon

- If the call is to the `provisional_create_canister_with_cycles` method, then any principal can be used as the effective canister id for this call.

- If the call is to the `install_chunked_code` method and the `arg` is a Candid-encoded record with a `target_canister` field of type `principal`, then the effective canister id must be that principal.

- Otherwise, if the `arg` is a Candid-encoded record with a `canister_id` field of type `principal`, then the effective canister id must be that principal.

- Otherwise, the call is rejected by the system independently of the effective canister id.
Expand Down Expand Up @@ -3624,6 +3626,7 @@ delegation_targets(D)
A `Request` has an effective canister id according to the rules in [Effective canister id](#http-effective-canister-id):
```
is_effective_canister_id(Request {canister_id = ic_principal, method = provisional_create_canister_with_cycles, …}, p)
is_effective_canister_id(Request {canister_id = ic_principal, method = install_chunked_code, arg = candid({target_canister = p, …}), …}, p)
is_effective_canister_id(Request {canister_id = ic_principal, arg = candid({canister_id = p, …}), …}, p)
is_effective_canister_id(Request {canister_id = p, …}, p), if p ≠ ic_principal
```
Expand Down

0 comments on commit e6da177

Please sign in to comment.