Skip to content

Commit

Permalink
fix example readme (#228)
Browse files Browse the repository at this point in the history
* fix example readme

* fix

* rerun CI
  • Loading branch information
chenyan-dfinity authored Mar 14, 2024
1 parent 61133ba commit 31fdac5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
env:
DFX_VERSION: 0.18.0
IC_REPL_VERSION: 0.6.2
IC_REPL_VERSION: 0.7.0
MOC_VERSION: 0.11.0
steps:
- name: Setup Rust
Expand Down
4 changes: 2 additions & 2 deletions service/pool/tests/canisterPool.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let S = install(wasm, init, null);
let nonce = record { timestamp = 1 : int; nonce = 1 : nat };
let CID = call S.getCanisterId(nonce, origin);
call S.installCode(CID, record { arg = blob ""; wasm_module = empty_wasm; mode = variant { install }; canister_id = CID.id }, record { profiling = false; is_whitelisted = false; origin = origin });
metadata(CID.id, "module_hash");
read_state("canister", CID.id, "module_hash");

// Immediately expire
let init = opt record {
Expand Down Expand Up @@ -80,5 +80,5 @@ call ic.provisional_top_up_canister(
call S.getCanisterId(nonce, origin);

// Enough time has passed that the timer has removed the canister code
fail metadata(CID.id, "module_hash");
fail read_state("canister", CID.id, "module_hash");
assert _ ~= "absent";
22 changes: 11 additions & 11 deletions src/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,57 @@ export const exampleProjects: ExampleProject[] = [
{
name: "Hello, world",
repo: { dir: "motoko/echo/src", ...example },
readme: `${readmeURL}/echo/README.mdx`,
readme: `${readmeURL}/echo/README.md`,
},
{
name: "Counter",
repo: { dir: "motoko/counter/src", ...example },
readme: `${readmeURL}/counter/README.mdx`,
readme: `${readmeURL}/counter/README.md`,
},
{
name: "Calculator",
repo: { dir: "motoko/calc/src", ...example },
readme: `${readmeURL}/calc/README.mdx`,
readme: `${readmeURL}/calc/README.md`,
},
{
name: "Who am I?",
repo: { dir: "motoko/whoami/src", ...example },
readme: `${readmeURL}/whoami/README.mdx`,
readme: `${readmeURL}/whoami/README.md`,
},
{
name: "Phone Book",
repo: { dir: "motoko/phone-book/src/phone-book", ...example },
readme: `${readmeURL}/phone-book/README.mdx`,
readme: `${readmeURL}/phone-book/README.md`,
},
{
name: "Super Heroes",
repo: { dir: "motoko/superheroes/src/superheroes", ...example },
readme: `${readmeURL}/superheroes/README.mdx`,
readme: `${readmeURL}/superheroes/README.md`,
},
{
name: "Random Maze",
repo: { dir: "motoko/random_maze/src/random_maze", ...example },
readme: `${readmeURL}/random_maze/README.mdx`,
readme: `${readmeURL}/random_maze/README.md`,
},
{
name: "Game of Life",
repo: { dir: "motoko/life", ...example },
readme: `${readmeURL}/life/README.mdx`,
readme: `${readmeURL}/life/README.md`,
},
{
name: "Publisher and Subscriber",
repo: { dir: "motoko/pub-sub/src", ...example },
readme: `${readmeURL}/pub-sub/README.mdx`,
readme: `${readmeURL}/pub-sub/README.md`,
},
{
name: "Actor Classes",
repo: { dir: "motoko/classes/src", ...example },
readme: `${readmeURL}/classes/README.mdx`,
readme: `${readmeURL}/classes/README.md`,
},
{
name: "Basic DAO",
repo: { dir: "motoko/basic_dao/src", ...example },
readme: `${readmeURL}/basic_dao/README.mdx`,
readme: `${readmeURL}/basic_dao/README.md`,
},
];

Expand Down

0 comments on commit 31fdac5

Please sign in to comment.