Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added nat64, canister id, canister name #1109

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
14 changes: 11 additions & 3 deletions rust/basic_dao/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ dfx identity new --disable-encryption Bob; dfx identity use Bob; export BOB=$(df
## Step 4: Deploy basic_dao with the initial test accounts

```bash
dfx deploy --argument "(record {
dfx deploy basic_dao --argument "(record {
accounts = vec { record { owner = principal \"$ALICE\"; tokens = record { amount_e8s = 100_000_000:nat64 }; };
record { owner = principal \"$BOB\"; tokens = record { amount_e8s = 100_000_000:nat64 };}; };
proposals = vec {};
Expand Down Expand Up @@ -95,7 +95,7 @@ You should see the output:
## Step 7: Transfer tokens to Alice

```bash
dfx canister call basic_dao transfer "(record { to = principal \"$ALICE\"; amount = record { amount_e8s = 90_000_000:nat;};})";
dfx canister call basic_dao transfer "(record { to = principal \"$ALICE\"; amount = record { amount_e8s = 90_000_000:nat64;};})";
```

Output:
Expand Down Expand Up @@ -176,7 +176,15 @@ blob "DIDL\03l\01\f2\c7\94\ae\03\01n\02l\01\b9\ef\93\80\08x\01\00\01 N\00\00\00\
## Step 10: We can then submit the proposal

```bash
dfx canister call basic_dao submit_proposal '(record { canister_id = principal "rrkah-fqaaa-aaaaa-aaaaq-cai";
dfx canister id basic_dao
```
Output:

```bash
<YOUR_CANISTER_ID>
```

dfx canister call basic_dao submit_proposal '(record { canister_id = principal "<YOUR_CANISTER_ID>";
method = "update_system_params":text;
message = blob "DIDL\03l\01\f2\c7\94\ae\03\01n\02l\01\b9\ef\93\80\08x\01\00\01 N\00\00\00\00\00\00"; })'
```
Expand Down