Skip to content

Commit

Permalink
fix principals in management and ledger canister
Browse files Browse the repository at this point in the history
  • Loading branch information
lastmjs committed Sep 29, 2023
1 parent 4721cd1 commit 0ac37b2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions canisters/ledger/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
Tuple,
Variant,
Vec,
principal,
Principal,
Func
} from '../../src/lib_functional';
import {
Expand Down Expand Up @@ -275,7 +275,7 @@ export const QueryBlocksResponse = Record({
});

export const Archive = Record({
canister_id: principal
canister_id: Principal
});

export const Archives = Record({
Expand Down
14 changes: 7 additions & 7 deletions canisters/management/canister_management.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ import {
Record,
Opt,
Vec,
principal,
Principal,
nat,
Variant,
Null,
blob
} from '../../src/lib_functional';

export const CanisterId = principal;
export const UserId = principal;
export const CanisterId = Principal;
export const UserId = Principal;
export const WasmModule = blob;

export const CanisterSettings = Record({
Expand All @@ -21,7 +21,7 @@ export const CanisterSettings = Record({
* Default value: A list containing only the caller of the
* {@link Management.create_canister} call
*/
controllers: Opt(Vec(principal)),
controllers: Opt(Vec(Principal)),
compute_allocation: Opt(nat),
memory_allocation: Opt(nat),
freezing_threshold: Opt(nat)
Expand All @@ -36,7 +36,7 @@ export const CreateCanisterArgs = Record({
});

export const CreateCanisterResult = Record({
canister_id: principal
canister_id: Principal
});

export const CanisterStatus = Variant({
Expand All @@ -46,7 +46,7 @@ export const CanisterStatus = Variant({
});

export const DefiniteCanisterSettings = Record({
controllers: Vec(principal),
controllers: Vec(Principal),
compute_allocation: nat,
memory_allocation: nat,
freezing_threshold: nat
Expand All @@ -61,7 +61,7 @@ export const CanisterStatusResult = Record({
});

export const CanisterStatusArgs = Record({
canister_id: principal
canister_id: Principal
});

export const UpdateSettingsArgs = Record({
Expand Down
4 changes: 2 additions & 2 deletions canisters/management/t_ecdsa.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
blob,
Null,
Opt,
principal,
Principal,
Record,
text,
Variant,
Expand All @@ -19,7 +19,7 @@ export const KeyId = Record({
});

export const EcdsaPublicKeyArgs = Record({
canister_id: Opt(principal),
canister_id: Opt(Principal),
derivation_path: Vec(blob),
key_id: KeyId
});
Expand Down

0 comments on commit 0ac37b2

Please sign in to comment.