Skip to content

Commit

Permalink
change stable memory size in tests, remove comments, fix a couple did…
Browse files Browse the repository at this point in the history
… files
  • Loading branch information
lastmjs committed Apr 1, 2024
1 parent 761a0d5 commit 5f3e170
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
5 changes: 1 addition & 4 deletions examples/complex_init/src/main.did
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
type User = record { id : text };
service : (record { text; User }) -> {
does_interpreter_exist : () -> (bool) query;
greet_user : () -> (text) query;
}
service : (record { text; User }) -> { greet_user : () -> (text) query }
1 change: 0 additions & 1 deletion examples/stable_memory/src/main.did
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ type Stable64GrowResult = variant { Ok : nat64; Err : StableMemoryError };
type StableGrowResult = variant { Ok : nat32; Err : StableMemoryError };
type StableMemoryError = variant { OutOfBounds; OutOfMemory };
service : () -> {
does_interpreter_exist : () -> (bool) query;
stable64_grow : (nat64) -> (Stable64GrowResult);
stable64_read : (nat64, nat64) -> (blob) query;
stable64_size : () -> (nat64) query;
Expand Down
4 changes: 2 additions & 2 deletions examples/stable_memory/test/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ runTests([
const result = await stableMemoryCanister.stable_size();

return {
Ok: result === 385
Ok: result === 257
};
}
},
Expand All @@ -29,7 +29,7 @@ runTests([
const result = await stableMemoryCanister.stable64_size();

return {
Ok: result === 385n
Ok: result === 257n
};
}
},
Expand Down
2 changes: 0 additions & 2 deletions kybra/compiler/install_rust_dependencies.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash

# TODO If we want to save a little bit of time we might be able to instruct rustup to not install some components initially, like clippy and docs
# TODO we might want to implement all of this in Python/Rust in the future for platform-independence etc
# TODO once ic-wasm is no longer required, we can probably just check for the wasm32-wasi target being installed: $global_kybra_rustup_bin target list | grep -q "wasm32-wasi (installed)"

kybra_version="$1"
rust_version="$2"
Expand Down

0 comments on commit 5f3e170

Please sign in to comment.