Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Use `BTreeMap` instead of `HashMap` for headers to guarantee deterministic order
Sets the `ic_env` cookie for html files, which contains the root key and the canister environment variables that are prefixed with `PUBLIC_`.
Please note that this version of the frontend canister is only compatible with PocketIC **v10** and above.

- Module hash: 5871b95ccb8278f3b817dcec42eb040f7a48949dc7f9bb1ed70108a952960aac
- Module hash: dad567d271e21c9834d2e2dc7508a8428697a3b5e3c8162ccd99eae68cd0eecc
- https://github.com/dfinity/sdk/pull/4392
- https://github.com/dfinity/sdk/pull/4387
- https://github.com/dfinity/sdk/pull/4389
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use std::collections::HashMap;
use std::collections::BTreeMap;

use ic_cdk::api::{env_var_count, env_var_name, env_var_value, root_key};

Expand All @@ -15,7 +15,7 @@ pub struct CanisterEnv {
/// for both the key and the value. Total size: 20 * 128 * 2 = 4096 bytes
///
/// Numbers from https://github.com/dfinity/ic/blob/34bd4301f941cdfa1596a0eecf9f58ad6407293c/rs/config/src/execution_environment.rs#L175-L183
pub icp_public_env_vars: HashMap<String, String>,
pub icp_public_env_vars: BTreeMap<String, String>,
}

impl CanisterEnv {
Expand Down Expand Up @@ -45,8 +45,8 @@ impl CanisterEnv {
}
}

fn load_icp_public_env_vars() -> HashMap<String, String> {
let mut public_env_vars = HashMap::new();
fn load_icp_public_env_vars() -> BTreeMap<String, String> {
let mut public_env_vars = BTreeMap::new();
let env_var_count = env_var_count();

for i in 0..env_var_count {
Expand Down
Loading