From 543e272297194e9b89b7a4add5182c249307f8d7 Mon Sep 17 00:00:00 2001 From: bogwar <51327868+bogwar@users.noreply.github.com> Date: Mon, 20 Nov 2023 14:50:25 +0100 Subject: [PATCH 1/2] added restriction on controllers --- spec/index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/index.md b/spec/index.md index b1becfe4f..111713fc7 100644 --- a/spec/index.md +++ b/spec/index.md @@ -1977,6 +1977,8 @@ This method traps if the canister's cycle balance decreases below the canister's This method installs code that had previously been uploaded in chunks. +Only controllers of the target canister can install code. + The `mode`, `arg`, and `sender_canister_version` parameters are as for `install_code`. The `target_canister` specifies the canister where the code should be installed. The optional `storage_canister` specifies the canister in whose chunk storage the chunks are stored (this parameter defaults to `target_canister` if not specified). From fc0fdb5804f47d3740605334948bc0afce9f7429 Mon Sep 17 00:00:00 2001 From: bogwar <51327868+bogwar@users.noreply.github.com> Date: Mon, 20 Nov 2023 15:17:19 +0100 Subject: [PATCH 2/2] Update spec/index.md Co-authored-by: mraszyk <31483726+mraszyk@users.noreply.github.com> --- spec/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/index.md b/spec/index.md index 111713fc7..9182b6a15 100644 --- a/spec/index.md +++ b/spec/index.md @@ -1977,7 +1977,7 @@ This method traps if the canister's cycle balance decreases below the canister's This method installs code that had previously been uploaded in chunks. -Only controllers of the target canister can install code. +Only controllers of the target canister can call this method. The `mode`, `arg`, and `sender_canister_version` parameters are as for `install_code`. The `target_canister` specifies the canister where the code should be installed.